Documentation
¶
Index ¶
- Variables
- func Debug(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(format string, v ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetLevel(lvl int)
- func SetOutput(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger represents a custom logging object. // It's exported so it can be used by api.httplogger until it's changed. Logger = stdLog.New(&logWriter{out: os.Stdout}, "", stdLog.Lshortfile) )
Functions ¶
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf is equivalent to Printf() followed by a call to os.Exit(1).
func Fatalln ¶
func Fatalln(v ...interface{})
Fatalln is equivalent to Println() followed by a call to os.Exit(1).
func Print ¶
func Print(v ...interface{})
Print calls logger.Output to print to the logger without any labels. Arguments are handled in the manner of fmt.Print.
func Printf ¶
func Printf(format string, v ...interface{})
Printf calls logger.Output to print to the logger without any labels. Arguments are handled in the manner of fmt.Printf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.