Fix log to file

This commit is contained in:
世界 2022-08-19 07:50:19 +08:00
parent c8424ed8fd
commit 1b7a3b4a74
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

1
box.go
View file

@ -60,6 +60,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
if err != nil {
return nil, err
}
logWriter = logFile
}
logFormatter := log.Formatter{
BaseTime: createdAt,