Fatal starts a new message with fatal level. The os.Exit(1) function is called by the Msg method. You must call Msg on the returned event in order to send the event.
()
| 86 | // |
| 87 | // You must call Msg on the returned event in order to send the event. |
| 88 | func Fatal() *zerolog.Event { |
| 89 | return Logger.Fatal() |
| 90 | } |
| 91 | |
| 92 | // Panic starts a new message with panic level. The message is also sent |
| 93 | // to the panic function. |