mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	1.6.0 -------------------------- Fixes: * end of line cleanup * revert the entry concurrency bug fix whic leads to deadlock under some circumstances * update dependency on go-windows-terminal-sequences to fix a crash with go 1.14 Features: * add an option to the `TextFormatter` to completely disable fields quoting 1.5.0 -------------------------- Code quality: * add golangci linter run on travis Fixes: * add mutex for hooks concurrent access on `Entry` data * caller function field for go1.14 * fix build issue for gopherjs target Feature: * add an hooks/writer sub-package whose goal is to split output on different stream depending on the trace level * add a `DisableHTMLEscape` option in the `JSONFormatter` * add `ForceQuote` and `PadLevelText` options in the `TextFormatter` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			14 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build darwin dragonfly freebsd netbsd openbsd
 | 
						|
// +build !js
 | 
						|
 | 
						|
package logrus
 | 
						|
 | 
						|
import "golang.org/x/sys/unix"
 | 
						|
 | 
						|
const ioctlReadTermios = unix.TIOCGETA
 | 
						|
 | 
						|
func isTerminal(fd int) bool {
 | 
						|
	_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
 | 
						|
	return err == nil
 | 
						|
}
 |