Closed Ruxton closed 7 years ago
Thanks for the PR, though minor change:
Logger interface {
Fatal(v ...interface{})
Fatalf(format string, v ...interface{})
Fatalln(v ...interface{})
Flags() int
Output(calldepth int, s string) error
Panic(v ...interface{})
Panicf(format string, v ...interface{})
Panicln(v ...interface{})
Prefix() string
Print(v ...interface{})
Printf(format string, v ...interface{})
Println(v ...interface{})
SetFlags(flag int)
SetOutput(w io.Writer)
SetPrefix(prefix string)
}
should be
Logger interface {
Printf(format string, v ...interface{})
}
since this package only makes use of Printf
@jpillora have fixed it up
Merged. Thanks!
Allows logger to be overriden with an external logger.