Documentation ¶
Index ¶
Constants ¶
View Source
const ( VerbNone Level = 0 VerbCritical Level = 1 << iota VerbError VerbWarning VerbNotice VerbInfo VerbDebug TxtDebug = "DBUG" TxtInfo = "INFO" TxtNotice = "NOTE" TxtWarning = "WARN" TxtError = "ERR " TxtCritical = "CRIT" TxtContinue = "...." )
Event message levels
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Level Level `json:"level"` Meta MetaInfo `json:"meta"` Message string `json:"msg"` Tags tag.Tags `json:"tags"` }
Event is a log unit
type Level ¶
type Level int
Level defines the level of event
func (Level) MarshalJSON ¶
MarshalJSON values for Event Level
type Logger ¶
Logger outputs events
Click to show internal directories.
Click to hide internal directories.