Fix Log level

This commit is contained in:
Olivier Poitrey 2017-06-05 12:59:29 -07:00
parent 7e8bba7e7f
commit 95ecd5ad27
1 changed files with 3 additions and 1 deletions

4
log.go
View File

@ -251,7 +251,9 @@ func (l Logger) Panic() *Event {
// //
// You must call Msg on the returned event in order to send the event. // You must call Msg on the returned event in order to send the event.
func (l Logger) Log() *Event { func (l Logger) Log() *Event {
return l.newEvent(ErrorLevel, false, nil) // We use panic level with addLevelField=false to make Log passthrough all
// levels except Disabled.
return l.newEvent(PanicLevel, false, nil)
} }
// Write implements the io.Writer interface. This is useful to set as a writer // Write implements the io.Writer interface. This is useful to set as a writer