Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶
Fatalf and Fatal use the error prefix for logging. If you want the process to exit with an error code pass true for exit.
Types ¶
type Logger ¶
type Logger interface { io.Writer io.Closer Infof(format string, v ...interface{}) error Info(v ...interface{}) error Warnf(format string, v ...interface{}) error Warn(v ...interface{}) error Fatalf(exit bool, format string, v ...interface{}) error Fatal(exit bool, v ...interface{}) error }
The logger interface will be implemented by a few different types of loggers
This should abstract away the individual backend loggers
func NewJournalLogger ¶
func NewSyslogLogger ¶
Click to show internal directories.
Click to hide internal directories.