Skip to content

Commit

Permalink
Merge pull request #334 from kongfei605/logs_to_file
Browse files Browse the repository at this point in the history
fix initLog function
  • Loading branch information
kongfei605 authored Jan 31, 2023
2 parents 275fd0a + 3358222 commit 591c6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func initLog(output string) {
log.SetOutput(os.Stderr)
case len(output) != 0:
log.SetOutput(&lumberjack.Logger{
Filename: config.Config.Log.FileName,
Filename: output,
MaxSize: config.Config.Log.MaxSize,
MaxAge: config.Config.Log.MaxAge,
MaxBackups: config.Config.Log.MaxBackups,
Expand Down

0 comments on commit 591c6d1

Please sign in to comment.