Documentation ¶
Overview ¶
Package log implements a simple logging package with severity level.
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func PrintTemplate(w io.Writer, textTemplate string, data interface{})
- func SetLevel(level Level)
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(v ...interface{})
Debug logs a debug information Arguments are handled in the manner of fmt.Print
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf logs a debug information Arguments are handled in the manner of fmt.Printf
func Fatal ¶
func Fatal(v ...interface{})
Fatal logs a fatal event and exit Arguments are handled in the manner of fmt.Print followed by a call to os.Exit(1)
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf logs a fatal event and exit Arguments are handled in the manner of fmt.Printf followed by a call to os.Exit(1)
func Info ¶
func Info(v ...interface{})
Info logs an information Arguments are handled in the manner of fmt.Print
func Infof ¶
func Infof(format string, v ...interface{})
Infof logs an information Arguments are handled in the manner of fmt.Printf
func PrintTemplate ¶
PrintTemplate prints the parsed text template to the specified data object, and writes the output to w.