Fix some typos and change naming from native to text, makes more sense

This commit is contained in:
Victor Edvardsson 2024-04-15 09:02:07 +02:00
parent d7022a2692
commit 99606b722d
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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\

View file

@ -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)