Add Fatalf to standard logger-ish
This commit is contained in:
@@ -34,3 +34,8 @@ func (l stdLoggerish) Println(msg ...interface{}) {
|
||||
func (l stdLoggerish) Printf(msg string, args ...interface{}) {
|
||||
l.f(l.key, "msg", fmt.Sprintf(msg, args...))
|
||||
}
|
||||
|
||||
func (l stdLoggerish) Fatalf(msg string, args ...interface{}) {
|
||||
l.log.Error(l.key, "msg", fmt.Sprintf(msg, args...))
|
||||
panic("fatal error") // todo: does this make sense at all?
|
||||
}
|
||||
|
Reference in New Issue
Block a user