Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugw(msg string, keyValues logger.KV)
- func Error(args ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorw(msg string, keyValues logger.KV)
- func Fatal(args ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalw(msg string, keyValues logger.KV)
- func Info(args ...interface{})
- func Infof(format string, v ...interface{})
- func Infow(msg string, keyValues logger.KV)
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetConfig(config *logger.Config) error
- func SetLevel(level logger.Level)
- func SetLevelString(level string)
- func SetLogger(backend logger.Logger)
- func Warn(args ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnw(msg string, keyValues logger.KV)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLevelString ¶
func SetLevelString(level string)
SetLevelString to set log level using string
Types ¶
type Config ¶
type Config struct { Level string // LogFile for log to file // this is not needed by default // application is expected to run in containerized environment LogFile string DebugFile string TimeFormat string // set true to log line numbers // make sure you understand the overhead when use this Caller bool // set true to colorize log, only work in console UseColor bool // use json format UseJSON bool }
Config of log
Click to show internal directories.
Click to hide internal directories.