Documentation ¶
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func EnableColor()
- func EnableLongFile()
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func IsLevelEnabled(level Level) bool
- func LevelSetByFlag() bool
- func Panic(v ...interface{})
- func Panicf(format string, v ...interface{})
- func Panicln(v ...interface{})
- func SetDir(dir string)
- func SetFileName(name string)
- func SetFilePathSplit(value string)
- func SetLevel(level Level)
- func SetLevelByName(name string)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func Traceln(v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableColor ¶
func EnableColor()
func EnableLongFile ¶
func EnableLongFile()
func IsLevelEnabled ¶
func LevelSetByFlag ¶
func LevelSetByFlag() bool
LevelSetByFlag returns true if log level is set by flag, so that it is possible to let flag input can override SetLevel() from config file
func SetFileName ¶
func SetFileName(name string)
func SetFilePathSplit ¶
func SetFilePathSplit(value string)
func SetLevelByName ¶
func SetLevelByName(name string)
Types ¶
Click to show internal directories.
Click to hide internal directories.