rustwatch 0.2.0

First-class logging and monitoring for Rust applications. Deep insights and structured logs, wherever you deploy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Record;

/// Trait for all formatter implementations
pub trait Formatter {
    fn format(&self, record: &Record) -> String;
}

// Internal modules for formatter implementations
mod json;
mod line;

// Re-export all formatter implementations for direct use via `formatters::`
pub use json::*;
pub use line::*;