colorized stdout logger if stdout is tty

This commit is contained in:
Christian Schwarz
2018-08-30 13:30:18 +02:00
parent b5957aca37
commit 1690339440
6 changed files with 51 additions and 9 deletions
+1
View File
@@ -197,6 +197,7 @@ type LoggingOutletCommon struct {
type StdoutLoggingOutlet struct {
LoggingOutletCommon `yaml:",inline"`
Time bool `yaml:"time,default=true"`
Color bool `yaml:"color,default=true""`
}
type SyslogLoggingOutlet struct {