Documentation
¶
Index ¶
- Constants
- func Close()
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func GetLevel() uint32
- func Infof(format string, args ...interface{})
- func SetLevel(v uint32)
- func SetOutput(out io.Writer)
- func Warnf(format string, args ...interface{})
- type Fields
- type Logger
- type Sender
- type Writer
- type WriterContext
Constants ¶
View Source
const ( LevelError uint32 LevelWarn LevelInfo LevelDebug )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
SetOutput(out io.Writer)
SetLevel(v uint32)
GetLevel() uint32
Close()
WriterContext
}
Logger base interface
type Sender ¶
type Sender interface {
PutEntity(v *entity)
SendMessage(level uint32, call func(v *message))
Close()
}
type Writer ¶
type Writer interface {
Fatalf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Warnf(format string, args ...interface{})
Infof(format string, args ...interface{})
Debugf(format string, args ...interface{})
}
Writer writer interface
Click to show internal directories.
Click to hide internal directories.