 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatibleLogger ¶ added in v0.3.4
type CompatibleLogger interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}
    CompatibleLogger todo
type Field ¶
type Field struct {
	Key   string
	Value interface{}
}
    Field 日志元数据
func NewFieldsFromKV ¶
NewFieldsFromKV todo
type FormatLogger ¶
type FormatLogger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
}
    FormatLogger 携带format的日志打印
type Logger ¶
type Logger interface {
	StandardLogger
	FormatLogger
	WithMetaLogger
	RecoveryLogger
	CompatibleLogger
	// 用于创建子Logger
	Named(name string) Logger
	With(fields ...Field) Logger
}
    Logger 程序日志接口, 用于适配多种第三方日志插件
type RecoveryLogger ¶
type RecoveryLogger interface {
	Recover(msg string)
}
    RecoveryLogger 记录Panice的日志
type StandardLogger ¶
type StandardLogger interface {
	Debug(msgs ...interface{})
	Info(msgs ...interface{})
	Warn(msgs ...interface{})
	Error(msgs ...interface{})
	Fatal(msgs ...interface{})
	Panic(msgs ...interface{})
}
    StandardLogger 标准的日志打印
 Click to show internal directories. 
   Click to hide internal directories.