Records v0.1.0
The formats a log record is written in: text or JSON lines.
LogFormat
pub enum LogFormat: uint8 {
Text = 0,
JsonLines = 1
}
How records are written. Copy.
Cases
| Name | Value | Description |
|---|---|---|
Text | 0 | One line of text per record: the time, the level, the message, then each field as key=value, with values that hold spaces, quotes or = in quotes. |
JsonLines | 1 | One JSON object per line, with time, level and message members followed by the fields. |