Error logs the msg and fields at LevelError. It will then Sync().
(ctx context.Context, msg string, fields ...Field)
| 98 | // |
| 99 | // It will then Sync(). |
| 100 | func (l Logger) Error(ctx context.Context, msg string, fields ...Field) { |
| 101 | l.log(ctx, LevelError, msg, fields) |
| 102 | l.Sync() |
| 103 | } |
| 104 | |
| 105 | // Critical logs the msg and fields at LevelCritical. |
| 106 | // |