Documentation
¶
Overview ¶
Package log 重新定义了标准日志接口,可以灵活适配各种日志框架。
Index ¶
- Constants
- func Console(skip int, level Level, e *Entry)
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func EnableDebug() bool
- func EnableError() bool
- func EnableFatal() bool
- func EnableInfo() bool
- func EnablePanic() bool
- func EnableTrace() bool
- func EnableWarn() bool
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Reset()
- func SetLevel(level Level)
- func SetOutput(output Output)
- func T(a ...interface{}) []interface{}
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Entry
- func (e Entry) Ctx(ctx context.Context) Entry
- func (e Entry) Debug(args ...interface{})
- func (e Entry) Debugf(format string, args ...interface{})
- func (e Entry) Error(args ...interface{})
- func (e Entry) Errorf(format string, args ...interface{})
- func (e Entry) Fatal(args ...interface{})
- func (e Entry) Fatalf(format string, args ...interface{})
- func (e *Entry) GetCtx() context.Context
- func (e *Entry) GetMsg() string
- func (e *Entry) GetTag() string
- func (e Entry) Info(args ...interface{})
- func (e Entry) Infof(format string, args ...interface{})
- func (e Entry) Panic(args ...interface{})
- func (e Entry) Panicf(format string, args ...interface{})
- func (e Entry) Tag(tag string) Entry
- func (e Entry) Trace(args ...interface{})
- func (e Entry) Tracef(format string, args ...interface{})
- func (e Entry) Warn(args ...interface{})
- func (e Entry) Warnf(format string, args ...interface{})
- type Level
- type Output
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry 打包需要记录的日志信息。
Click to show internal directories.
Click to hide internal directories.