Documentation ¶
Index ¶
- type Level
- type Log
- func (l *Log) GetExtTag(key string) string
- func (l *Log) GetExtTagEx(key string) (string, bool)
- func (l *Log) SetExtTag(key, value string) *Log
- func (l *Log) SetReverse1(value string) *Log
- func (l *Log) SetReverse2(value string) *Log
- func (l *Log) SetReverse3(value string) *Log
- func (l *Log) SetReverse4(value string) *Log
- func (l *Log) SetReverse5(value string) *Log
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Time time.Time Level Level Text string Reverse1 string `json:"Reverse1,omitempty" bson:"Reverse1,omitempty"` Reverse2 string `json:"Reverse2,omitempty" bson:"Reverse2,omitempty"` Reverse3 string `json:"Reverse3,omitempty" bson:"Reverse3,omitempty"` Reverse4 string `json:"Reverse4,omitempty" bson:"Reverse4,omitempty"` Reverse5 string `json:"Reverse5,omitempty" bson:"Reverse5,omitempty"` ExtTags map[string]string `json:"ExtTags,omitempty" bson:"ExtTags,omitempty"` }
func (*Log) SetReverse1 ¶
func (*Log) SetReverse2 ¶
func (*Log) SetReverse3 ¶
func (*Log) SetReverse4 ¶
func (*Log) SetReverse5 ¶
type Logger ¶
type Logger interface { Debgf(format string, a ...interface{}) Infof(format string, a ...interface{}) Warnf(format string, a ...interface{}) Errof(format string, a ...interface{}) Fataf(format string, a ...interface{}) Erro(err error, wrapMsg ...string) Fata(err error, wrapMsg ...string) AssertOk(err error, wrapMsg ...string) AssertTrue(express bool, wrapMsg ...string) }
Click to show internal directories.
Click to hide internal directories.