Warn logs a message at WarnLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
(msg string, fields ...Field)
| 251 | // Warn logs a message at WarnLevel. The message includes any fields passed |
| 252 | // at the log site, as well as any fields accumulated on the logger. |
| 253 | func (log *Logger) Warn(msg string, fields ...Field) { |
| 254 | if ce := log.check(WarnLevel, msg); ce != nil { |
| 255 | ce.Write(fields...) |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | // Error logs a message at ErrorLevel. The message includes any fields passed |
| 260 | // at the log site, as well as any fields accumulated on the logger. |