librarius 0.1.1

A simple and lightweight logging library for Rust. It provides a flexible framework for emitting log messages from Rust programs, with support for different log levels and output formats.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod config;
pub mod logger;
pub mod macros; // info!, warn!, etc.

pub use crate::config::log::Level;
pub use config::Config;
pub use logger::Logger;

pub fn init(config: Config) {
    Logger::init(Logger {
        level: config.level,
        log_file: config.log_to_file,
        file_path: config.file_path.clone(),
    });
}