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 Log
- func (l *Log) Close()
- func (l *Log) Debugf(format string, args ...interface{})
- func (l *Log) Errorf(format string, args ...interface{})
- func (l *Log) Fatalf(format string, args ...interface{})
- func (l *Log) GetLevel() uint32
- func (l *Log) Infof(format string, args ...interface{})
- func (l *Log) SetLevel(v uint32)
- func (l *Log) SetOutput(out io.Writer)
- func (l *Log) Warnf(format string, args ...interface{})
- type Logger
- type Message
Constants ¶
View Source
const ( LevelError uint32 = iota LevelWarn LevelInfo LevelDebug )
nolint: golint
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶ added in v1.2.0
type Log struct {
// contains filtered or unexported fields
}
Log base model
func (*Log) Close ¶ added in v1.2.0
func (l *Log) Close()
Close waiting for all messages to finish recording
type Logger ¶
type Logger interface {
SetOutput(out io.Writer)
SetLevel(v uint32)
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{})
Close()
}
Logger base interface
type Message ¶ added in v1.2.0
type Message struct {
Time int64 `json:"time"`
Type string `json:"type"`
Data string `json:"data"`
}
Message model
func (Message) MarshalEasyJSON ¶ added in v1.2.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶ added in v1.2.0
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶ added in v1.2.0
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶ added in v1.2.0
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.