mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 16:41:30 +00:00
Fix log to file
This commit is contained in:
parent
c8424ed8fd
commit
1b7a3b4a74
1
box.go
1
box.go
|
@ -60,6 +60,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
logWriter = logFile
|
||||||
}
|
}
|
||||||
logFormatter := log.Formatter{
|
logFormatter := log.Formatter{
|
||||||
BaseTime: createdAt,
|
BaseTime: createdAt,
|
||||||
|
|
Loading…
Reference in a new issue