rivet-logger 0.1.0

Rivet framework crates and adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::BTreeMap;

use time::OffsetDateTime;

use super::{Level, LogValue};

pub type Context = BTreeMap<String, LogValue>;

#[derive(Clone, Debug)]
pub struct LogRecord {
    pub datetime: OffsetDateTime,
    pub channel: String,
    pub level: Level,
    pub message: String,
    pub context: Context,
    pub extra: Context,
}