Documentation ¶
Overview ¶
Package log is a global internal logger
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func GetLogger() log.Logger
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Log(v ...interface{})
- func Logf(format string, v ...interface{})
- func Name(name string)
- func SetLevel(l Level)
- func SetLogger(l log.Logger)
- func SetPrefix(p string)
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func WithLevel(l Level, v ...interface{})
- func WithLevelf(l Level, format string, v ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v1.8.0
func Debugf(format string, v ...interface{})
Debugf provides debug level logging
func Errorf ¶ added in v1.10.0
func Errorf(format string, v ...interface{})
Errorf provides warn level logging
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf logs with Logf and then exits with os.Exit(1)
func Infof ¶ added in v1.8.0
func Infof(format string, v ...interface{})
Infof provides info level logging
func Tracef ¶ added in v1.8.0
func Tracef(format string, v ...interface{})
Tracef provides trace level logging
func WithLevel ¶ added in v1.8.0
func WithLevel(l Level, v ...interface{})
WithLevel logs with the level specified
func WithLevelf ¶ added in v1.8.0
WithLevel logs with the level specified
Types ¶
Click to show internal directories.
Click to hide internal directories.