Fatalf is equivalent to a call to Errorf followed by os.Exit(255). Code that may be imported by other projects should NOT use Fatalf.
(format string, a ...interface{})
| 96 | // Fatalf is equivalent to a call to Errorf followed by os.Exit(255). Code that |
| 97 | // may be imported by other projects should NOT use Fatalf. |
| 98 | func Fatalf(format string, a ...interface{}) { |
| 99 | writef(FatalLevel, format, a...) |
| 100 | os.Exit(255) |
| 101 | } |
| 102 | |
| 103 | // Errorf writes an ERROR level message to the log but does not exit. This |
| 104 | // should be called when an error is being returned to the calling thread |
no test coverage detected