Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Use(logger Logger)
- func Verbose(args ...interface{})
- func Verbosef(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs debug level log information.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs error level log information.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs fatal level log information.
Types ¶
type Logger ¶
type Logger interface { Verbose(depth int, args ...interface{}) Debug(depth int, args ...interface{}) Info(depth int, args ...interface{}) Warning(depth int, args ...interface{}) Error(depth int, args ...interface{}) Fatal(depth int, args ...interface{}) }
Logger is used to record different levels of logs. Implementing a logger requires that all methods are thread-safe.
Click to show internal directories.
Click to hide internal directories.