Even more detailed comments on log levels
This commit is contained in:
parent
852a968873
commit
1a4bb2a004
1 changed files with 5 additions and 2 deletions
|
@ -21,12 +21,15 @@ import (
|
||||||
const (
|
const (
|
||||||
|
|
||||||
// Logs critical errors that can lead to data loss or panic
|
// Logs critical errors that can lead to data loss or panic
|
||||||
|
// also, only logs errors that would never be returned to
|
||||||
|
// a calling function. Such as errors within goroutines.
|
||||||
LogError int = iota
|
LogError int = iota
|
||||||
|
|
||||||
// Logs very abnormal events
|
// Logs very abnormal events even if they're also returend as
|
||||||
|
// an error to the calling code.
|
||||||
LogWarning
|
LogWarning
|
||||||
|
|
||||||
// Logs normal basic activity like connect/disconnects
|
// Logs normal non-error activity like connect/disconnects
|
||||||
LogInformational
|
LogInformational
|
||||||
|
|
||||||
// Logs detailed activity including all HTTP/Websocket packets.
|
// Logs detailed activity including all HTTP/Websocket packets.
|
||||||
|
|
Loading…
Reference in a new issue