Fix Log level
This commit is contained in:
parent
7e8bba7e7f
commit
95ecd5ad27
4
log.go
4
log.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue