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
15
16
17
18
use crate::Record;

/// Expose Handler trait at crate root
pub trait Handler {
    fn log(&mut self, record: &Record) -> bool;

    fn severity(&self) -> usize {
        0
    }
}

// Internal modules for handler implementations
mod console;
mod file;

// Re-export all handler implementations
pub use console::*;
pub use file::*;