mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
Refine log settings
This commit is contained in:
1 parent
32c3565681
commit
db7d48e48f
10 files changed
+229
-111
No files matched your search
@@ -3,6 +3,7 @@ package mocks
|
||||
import (
|
||||
routerconfig "github.com/v2ray/v2ray-core/app/router/config"
|
||||
routertestingconfig "github.com/v2ray/v2ray-core/app/router/config/testing"
|
||||
"github.com/v2ray/v2ray-core/common/log"
|
||||
v2net "github.com/v2ray/v2ray-core/common/net"
|
||||
"github.com/v2ray/v2ray-core/shell/point/config"
|
||||
)
|
||||
@@ -22,6 +23,20 @@ func (config *ConnectionConfig) Settings() interface{} {
|
||||
|
||||
type LogConfig struct {
|
||||
AccessLogValue string
|
||||
ErrorLogValue string
|
||||
LogLevelValue log.LogLevel
|
||||
}
|
||||
|
||||
func (config *LogConfig) AccessLog() string {
|
||||
return config.AccessLogValue
|
||||
}
|
||||
|
||||
func (this *LogConfig) ErrorLog() string {
|
||||
return this.ErrorLogValue
|
||||
}
|
||||
|
||||
func (this *LogConfig) LogLevel() log.LogLevel {
|
||||
return this.LogLevelValue
|
||||
}
|
||||
|
||||
type PortRange struct {
|
||||
@@ -55,10 +70,6 @@ func (this *OutboundDetourConfig) Tag() string {
|
||||
return this.TagValue
|
||||
}
|
||||
|
||||
func (config *LogConfig) AccessLog() string {
|
||||
return config.AccessLogValue
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
PortValue v2net.Port
|
||||
LogConfigValue *LogConfig
|
||||
|
||||
Reference in new issue
Block a user