Critical logs the msg and fields at LevelCritical. It will then Sync().
(ctx context.Context, msg string, fields ...Field)
| 106 | // |
| 107 | // It will then Sync(). |
| 108 | func (l Logger) Critical(ctx context.Context, msg string, fields ...Field) { |
| 109 | l.log(ctx, LevelCritical, msg, fields) |
| 110 | l.Sync() |
| 111 | } |
| 112 | |
| 113 | // Fatal logs the msg and fields at LevelFatal. |
| 114 | // |