piquel-log 0.0.4

Small, composable backend initialization for tracing
Documentation
/// Rendering configuration shared by all sinks.
#[derive(Debug, Clone, Copy)]
pub(crate) struct FormatterConfig {
    pub(crate) ansi: bool,
    pub(crate) target: bool,
    pub(crate) timestamp: bool,
}

/// Final, sink-ready event representation.
#[derive(Debug, Clone)]
pub(crate) struct FormattedEvent {
    pub(crate) line: String,
}

pub(crate) trait Sink: Send + Sync {
    fn write(&self, event: &FormattedEvent);

    fn formatter_config(&self, base: FormatterConfig) -> FormatterConfig {
        base
    }
}