Documentation ¶
Overview ¶
Package log is a wrapper of logrus.
Index ¶
- Variables
- func Crit(msg string, ctx ...interface{})
- func Critf(format string, args ...interface{})
- func Critln(msg string, ctx ...interface{})
- func Debug(msg string, ctx ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(msg string, ctx ...interface{})
- func Error(msg string, ctx ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(msg string, ctx ...interface{})
- func Fatal(msg string, ctx ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(msg string, ctx ...interface{})
- func Info(msg string, ctx ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(msg string, ctx ...interface{})
- func Null(string, ...interface{})
- func Panic(msg string, ctx ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(msg string, ctx ...interface{})
- func Print(msg ...interface{})
- func Printf(format string, args ...interface{})
- func Println(msg ...interface{})
- func SetLogFile(logFile string, logRotation, logMaxAge uint64)
- func SetLogger(logLevel uint32, jsonFormat, colorFormat bool)
- func Trace(msg string, ctx ...interface{})
- func Tracef(format string, args ...interface{})
- func Traceln(msg string, ctx ...interface{})
- func Warn(msg string, ctx ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(msg string, ctx ...interface{})
- func WithFields(ctx ...interface{}) *logrus.Entry
- type PrintFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONFormat bool
JSONFormat print log in json format
Functions ¶
func SetLogFile ¶
SetLogFile set log file path and rotation
func WithFields ¶
WithFields encapsulate logrus.WithFields
Types ¶
Click to show internal directories.
Click to hide internal directories.