Skip to content

Commit

Permalink
Update logger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 authored Apr 4, 2018
1 parent 52c7100 commit f1316fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func getLevelString(level uint8) string {
}

// New returns a new logger
//modeSafe when true : must call logger.Flush() in main defer
//modeSafe when false : must call logger.Flush() in main defer
//if not do that, may be lost message,but this mode has a highest performance
//when false : each message can be processed , but this mode may be has a little lower performance
//when true : each message can be processed , but this mode may be has a little lower performance
//beacuse of logger must wait for all writers process done with each messsage.
//note: if you do logging before call os.Exit(), you had better to set safeMode to true before call os.Exit().
//fields same as With()'s args,more about fields to see With().
Expand Down

0 comments on commit f1316fe

Please sign in to comment.