Documentation ¶
Overview ¶
Package logger provides support for logging to stdout and stderr. Log entries will be logged with format: $timestamp $hostname [$pid]: $severity $message.
Index ¶
- func CheckLevel(level string) error
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(format string, v ...interface{})
- func GetLevel() string
- func Info(format string, v ...interface{})
- func SetLevel(level string)
- func SetOutput(out io.Writer)
- func Warn(format string, v ...interface{})
- type LogFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLevel ¶
CheckLevel checks whether the log level is valid.
func Fatal ¶
func Fatal(format string, v ...interface{})
Fatal logs a message with severity ERROR followed by a call to os.Exit().
Types ¶
Click to show internal directories.
Click to hide internal directories.