feat(logging): added loging filters

This commit is contained in:
Torkel Ödegaard
2016-06-07 12:11:41 +02:00
parent 3dc7706c45
commit a02cf5beb7
6 changed files with 73 additions and 17 deletions
+5
View File
@@ -546,7 +546,12 @@ func readSessionConfig() {
}
func initLogging() {
// split on comma
LogModes = strings.Split(Cfg.Section("log").Key("mode").MustString("console"), ",")
// also try space
if len(LogModes) == 1 {
LogModes = strings.Split(Cfg.Section("log").Key("mode").MustString("console"), " ")
}
LogsPath = makeAbsolute(Cfg.Section("paths").Key("logs").String(), HomePath)
log.ReadLoggingConfig(LogModes, LogsPath, Cfg)
}