Fix log to file

This commit is contained in:
世界
2022-08-19 07:50:19 +08:00
parent c8424ed8fd
commit 1b7a3b4a74

1
box.go
View File

@@ -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,