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