WriteLevel if *l* is warning or higher then *b* is written to the error location, otherwise it is written to the default location.
(l zerolog.Level, b []byte)
| 29 | // WriteLevel if *l* is warning or higher then *b* is written to the error |
| 30 | // location, otherwise it is written to the default location. |
| 31 | func (r RoutingLevelWriter) WriteLevel(l zerolog.Level, b []byte) (int, error) { |
| 32 | if l < zerolog.WarnLevel { |
| 33 | return r.Write(b) |
| 34 | } |
| 35 | return r.ErrWriter.Write(b) |
| 36 | } |