Panic starts a new message with panic level. The panic() function is called by the Msg method, which stops the ordinary flow of a goroutine. You must call Msg on the returned event in order to send the event.
()
| 408 | // |
| 409 | // You must call Msg on the returned event in order to send the event. |
| 410 | func (l *Logger) Panic() *Event { |
| 411 | return l.newEvent(PanicLevel, func(msg string) { panic(msg) }) |
| 412 | } |
| 413 | |
| 414 | // WithLevel starts a new message with level. Unlike Fatal and Panic |
| 415 | // methods, WithLevel does not terminate the program or stop the ordinary |