Fix some typos and change naming from native to text, makes more sense
This commit is contained in:
parent
d7022a2692
commit
99606b722d
|
@ -2,7 +2,7 @@ common:
|
|||
daemonize: true
|
||||
log_media: file
|
||||
log_level: info
|
||||
log_format: native
|
||||
log_format: text
|
||||
log_dir: /var/log/
|
||||
log_max_size: 20
|
||||
compress_logs: true
|
||||
|
|
|
@ -2,7 +2,7 @@ common:
|
|||
daemonize: false
|
||||
log_media: file
|
||||
log_level: info
|
||||
log_fromat: native
|
||||
log_format: text
|
||||
log_dir: C:\ProgramData\CrowdSec\log\
|
||||
config_paths:
|
||||
config_dir: C:\ProgramData\CrowdSec\config\
|
||||
|
|
|
@ -50,7 +50,7 @@ func SetDefaultLoggerConfig(cfgMode string, cfgFolder string, cfgLevel log.Level
|
|||
|
||||
if LogFormat == "json" {
|
||||
logFormatter = &log.JSONFormatter{}
|
||||
} else if LogFormat == "native" {
|
||||
} else if LogFormat == "text" {
|
||||
logFormatter = &log.TextFormatter{TimestampFormat: time.RFC3339, FullTimestamp: true, ForceColors: forceColors}
|
||||
} else {
|
||||
return fmt.Errorf("log format '%s' unknown", LogFormat)
|
||||
|
|
Loading…
Reference in a new issue