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 MetaInfo ¶
type MetaInfo struct { Host string `json:"host"` PID int `json:"pid"` Time time.Time `json:"time"` File string `json:"file"` Line int `json:"line"` Func string `json:"func"` }
MetaInfo is source information about an event
func NewMetaInfo ¶
NewMetaInfo generate a set of tags about the runtime.
Click to show internal directories.
Click to hide internal directories.