readme: add notes on logging levels

This commit is contained in:
Simon Eskildsen 2014-03-12 08:00:18 -04:00
parent 44ead10986
commit cd5805716d
1 changed files with 2 additions and 0 deletions

View File

@ -98,7 +98,9 @@ log.Debug("Useful debugging information.")
log.Info("Something noteworthy happened!")
log.Warn("You should probably take a look at this.")
log.Error("Something failed but I'm not quitting.")
// Calls os.Exit(1) after logging
log.Fatal("Bye.")
// Calls panic() after logging
log.Panic("I'm bailing.")
```