Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type = int
Type indicates the type of log line, e.g. an "error" line.
const ( // TypeMessage lines do not have extra attributes. They consist solely of // the baseline attributes with a `msg` attribute conveying the presentable // information. TypeMessage Type = iota // TypeDataIncluded represents lines that have a `data` field which contains // serialized JSON. Such lines may have other attributes, but the `data` // attribute is the primary focus. TypeDataIncluded // TypeEmbeddedDataIncluded represents lines that have inlined serialized // JSON. For example, a log was likely generated like: // // log.info(`some ${JSON.stringify(data)} data`) // TypeEmbeddedDataIncluded // TypeError represents lines who's extra attributes represent error metadata. TypeError // TypeExtraAttributes log lines that have added attributes, but are // otherwise a regular [TypeMessage] log line. TypeExtraAttributes )
Click to show internal directories.
Click to hide internal directories.