Error starts a new message with error level. You must call Msg on the returned event in order to send the event.
()
| 367 | // |
| 368 | // You must call Msg on the returned event in order to send the event. |
| 369 | func (l *Logger) Error() *Event { |
| 370 | return l.newEvent(ErrorLevel, nil) |
| 371 | } |
| 372 | |
| 373 | // Err starts a new message with error level with err as a field if not nil or |
| 374 | // with info level if err is nil. |