full diff: https://github.com/sirupsen/logrus/compare/v1.4.1...v1.5.0 - Ability to DisableHTMLEscape when using the JSON formatter - Support/fixes for go 1.14 - Many many bugfixes Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			14 lines
		
	
	
		
			227 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			227 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build linux aix
 | 
						|
// +build !js
 | 
						|
 | 
						|
package logrus
 | 
						|
 | 
						|
import "golang.org/x/sys/unix"
 | 
						|
 | 
						|
const ioctlReadTermios = unix.TCGETS
 | 
						|
 | 
						|
func isTerminal(fd int) bool {
 | 
						|
	_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
 | 
						|
	return err == nil
 | 
						|
}
 |