committed by
Steve Brunton
parent
3d56bb040c
commit
8d1c2e7700
6
main.go
6
main.go
@@ -68,6 +68,12 @@ func configureLog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.SetLevel(ll)
|
log.SetLevel(ll)
|
||||||
|
|
||||||
|
if *logFormat == "text" {
|
||||||
|
log.SetFormatter(&log.TextFormatter{})
|
||||||
|
} else {
|
||||||
|
log.SetFormatter(&log.JSONFormatter{})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadConfig() (*config.Config, error) {
|
func loadConfig() (*config.Config, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user