Errorf is used to log errors that break or impair functionality. The task/process may have to be aborted and tried again later. The system is still operational.
(format string, things ...interface{})
| 151 | |
| 152 | // Errorf is used to log errors that break or impair functionality. The task/process may have to be aborted and tried again later. The system is still operational. |
| 153 | func Errorf(format string, things ...interface{}) { |
| 154 | atomic.AddUint64(errLogLines, 1) |
| 155 | if fastcheck(ErrorLevel) { |
| 156 | log(ErrorLevel, fmt.Sprintf(format, things...), nil) |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | // Critical is used to log events that completely break the system. Operation cannot continue. User/Admin must be informed. |
| 161 | func Critical(msg string) { |