mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
add: mute access/error logger seperately
This commit is contained in:
parent
16e9d39fff
commit
79cf94be6c
@ -30,11 +30,15 @@ func (v *LogConfig) Build() *log.Config {
|
||||
AccessLogType: log.LogType_Console,
|
||||
}
|
||||
|
||||
if len(v.AccessLog) > 0 {
|
||||
if v.AccessLog == "none" {
|
||||
config.AccessLogType = log.LogType_None
|
||||
} else if len(v.AccessLog) > 0 {
|
||||
config.AccessLogPath = v.AccessLog
|
||||
config.AccessLogType = log.LogType_File
|
||||
}
|
||||
if len(v.ErrorLog) > 0 {
|
||||
if v.ErrorLog == "none" {
|
||||
config.ErrorLogType = log.LogType_None
|
||||
} else if len(v.ErrorLog) > 0 {
|
||||
config.ErrorLogPath = v.ErrorLog
|
||||
config.ErrorLogType = log.LogType_File
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user