Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func SetLevel(level string) error
- func SetLogDir(dir string, rotateNum int)
- func SetReportCaller(enable bool)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Traceln(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- type GetCallerHook
Constants ¶
View Source
const (
Time_Stamp_Format = "2006-01-02 15:04:05"
)
Variables ¶
View Source
var DefaultLogger *logger
Functions ¶
func SetReportCaller ¶
func SetReportCaller(enable bool)
Types ¶
type GetCallerHook ¶
type GetCallerHook struct { Field string KipPkg string Debug bool // contains filtered or unexported fields }
This method may lead to system crash in the case of concurrency. Please use it with caution or Control caller level;set config LogLevelReportCaller Get Caller hook
func (*GetCallerHook) Fire ¶
func (hook *GetCallerHook) Fire(entry *logrus.Entry) error
Fire implement fire
func (GetCallerHook) GetKipPkg ¶
func (hook GetCallerHook) GetKipPkg() string
func (*GetCallerHook) Levels ¶
func (hook *GetCallerHook) Levels() []logrus.Level
Levels implement levels
func (GetCallerHook) SetDebug ¶
func (hook GetCallerHook) SetDebug(debug bool)
func (GetCallerHook) SetKipPkg ¶
func (hook GetCallerHook) SetKipPkg(args ...string)
Click to show internal directories.
Click to hide internal directories.