pub mod pretty;
#[cfg(feature = "json")]
pub mod json;

use log::Record;
use std::error::Error;
use std::io::Write;

pub trait Formatter: Send + Sync {
    type Error: Error;

    fn format_log(&self, record: &Record, out: impl Write) -> Result<(), Self::Error>;
}
