Documentation
¶
Index ¶
- Variables
- func Debug(msg interface{}, keyvals ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(msg interface{}, keyvals ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(msg interface{}, keyvals ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(msg interface{}, keyvals ...interface{})
- func Infof(format string, args ...interface{})
- func Print(msg interface{}, keyvals ...interface{})
- func Printf(format string, args ...interface{})
- func Warn(msg interface{}, keyvals ...interface{})
- func Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var Default *log.Logger
Functions ¶
func Debug ¶
func Debug(msg interface{}, keyvals ...interface{})
Debug will print when logger's Level is debug.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf will print when logger's Level is debug.
func Error ¶
func Error(msg interface{}, keyvals ...interface{})
Error will print only when logger's Level is error, warn, info or debug.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf will print only when logger's Level is error, warn, info or debug.
func Fatal ¶
func Fatal(msg interface{}, keyvals ...interface{})
Fatal `os.Exit(1)` exit no matter the level of the logger. If the logger's level is fatal, error, warn, info or debug then it will print the log message too.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf will `os.Exit(1)` no matter the level of the logger. If the logger's level is fatal, error, warn, info or debug then it will print the log message too.
func Info ¶
func Info(msg interface{}, keyvals ...interface{})
Info will print when logger's Level is info or debug.
func Infof ¶
func Infof(format string, args ...interface{})
Infof will print when logger's Level is info or debug.
func Print ¶
func Print(msg interface{}, keyvals ...interface{})
Print prints a log message without levels and colors.
func Printf ¶
func Printf(format string, args ...interface{})
Printf prints a log message without levels and colors.
Types ¶
This section is empty.