Documentation ¶
Overview ¶
Package log is a thin logging package.
Index ¶
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Panicf(format string, args ...interface{})
- func ReplaceLogger(logger StdLogger) func()
- func Tracef(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type StdLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceLogger ¶
func ReplaceLogger(logger StdLogger) func()
ReplaceLogger replaces log.global with the passed log.StdLogger, and returns a function to restore the original values.
Types ¶
type StdLogger ¶
type StdLogger interface { Tracef(format string, args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Panicf(format string, args ...interface{}) }
StdLogger interface for Standard Logger.
Click to show internal directories.
Click to hide internal directories.