Documentation
¶
Overview ¶
Package log provides support for logging to stdout and stderr.
Log entries will be logged in the following format:
timestamp hostname tag[pid]: SEVERITY Message
Index ¶
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func SetFormat(format string)
- func SetLevel(level string)
- func SetTag(t string)
- func Warning(format string, v ...interface{})
- type ConfdFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(format string, v ...interface{})
Fatal logs a message with severity ERROR followed by a call to os.Exit().
func SetFormat ¶ added in v0.32.0
func SetFormat(format string)
SetFormat sets the log format. Valid formats are "text" and "json".
Types ¶
type ConfdFormatter ¶
type ConfdFormatter struct {
}
Click to show internal directories.
Click to hide internal directories.