From a948d4c1e13038ad0a5be9b8a4398020b4ce378b Mon Sep 17 00:00:00 2001 From: astaxie Date: Sun, 19 Nov 2017 11:07:57 +0800 Subject: [PATCH] set default to apache format --- config.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config.go b/config.go index 978fc7a9..eeeac8ee 100644 --- a/config.go +++ b/config.go @@ -105,10 +105,10 @@ type SessionConfig struct { // LogConfig holds Log related config type LogConfig struct { - AccessLogs bool - AccessLogsFormat string //access log format: JSON_FORMAT, APACHE_FORMAT or empty string - FileLineNum bool - Outputs map[string]string // Store Adaptor : config + AccessLogs bool + AccessLogsFormat string //access log format: JSON_FORMAT, APACHE_FORMAT or empty string + FileLineNum bool + Outputs map[string]string // Store Adaptor : config } var ( @@ -246,10 +246,10 @@ func newBConfig() *Config { }, }, Log: LogConfig{ - AccessLogs: false, - AccessLogsFormat: "", - FileLineNum: true, - Outputs: map[string]string{"console": ""}, + AccessLogs: false, + AccessLogsFormat: "APACHE_FORMAT", + FileLineNum: true, + Outputs: map[string]string{"console": ""}, }, } }