winston 0.1.0

winston for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod console;
pub mod file;

pub use console::ConsoleTransport as Console;
pub use file::FileTransport as File;

use std::any::Any;

pub trait Transport: Any + Send + Sync {
    fn log(&self, message: &str, level: &str);
    fn get_level(&self) -> Option<&String>;
    fn get_format(&self) -> Option<&String>;
}

pub struct TransportStreamOptions {
    pub level: Option<String>,
    pub format: Option<String>,
}