mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
feat(log): allow disable timestamp on terminal logs
allow disable timestamp on terminal logs Signed-off-by: kovacs <mritd@linux.com>
This commit is contained in:
parent
bb7b29923a
commit
4b70971495
@ -45,7 +45,7 @@ func New(options Options) (Factory, error) {
|
|||||||
logFormatter := Formatter{
|
logFormatter := Formatter{
|
||||||
BaseTime: options.BaseTime,
|
BaseTime: options.BaseTime,
|
||||||
DisableColors: logOptions.DisableColor || logFilePath != "",
|
DisableColors: logOptions.DisableColor || logFilePath != "",
|
||||||
DisableTimestamp: !logOptions.Timestamp && logFilePath != "",
|
DisableTimestamp: !logOptions.Timestamp,
|
||||||
FullTimestamp: logOptions.Timestamp,
|
FullTimestamp: logOptions.Timestamp,
|
||||||
TimestampFormat: "-0700 2006-01-02 15:04:05",
|
TimestampFormat: "-0700 2006-01-02 15:04:05",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user