Skip to content

Commit

Permalink
Merge pull request sirupsen#962 from Clivern/patch-1
Browse files Browse the repository at this point in the history
Update Example to Append to the log file not to overwrite
  • Loading branch information
dgsb authored May 18, 2019
2 parents 839c75f + 0006e8c commit 2a22dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func main() {
log.Out = os.Stdout

// You could set this to any `io.Writer` such as a file
// file, err := os.OpenFile("logrus.log", os.O_CREATE|os.O_WRONLY, 0666)
// file, err := os.OpenFile("logrus.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
// if err == nil {
// log.Out = file
// } else {
Expand Down

0 comments on commit 2a22dbe

Please sign in to comment.