mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-14 03:29:37 +03:00
Fix log to file
This commit is contained in:
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user