forked from mirror/logrus
readme: add notes on logging levels
This commit is contained in:
parent
44ead10986
commit
cd5805716d
|
@ -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.")
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue