snowlog 0.1.0

A structured logging library for Rust with JSON output and rotation support
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::writer::Writer;

#[derive(Debug)]
pub struct ConsoleWriter;

impl Writer for ConsoleWriter {
    fn write(&mut self, line: &str) -> std::io::Result<()> {
        println!("{}", line);
        Ok(())
    }
}