4 releases

0.2.1 Oct 18, 2024
0.2.0 Oct 18, 2024
0.1.1 Oct 1, 2024
0.1.0 Oct 1, 2024

#4 in #colored

Download history 273/week @ 2024-09-30 18/week @ 2024-10-07 238/week @ 2024-10-14 33/week @ 2024-10-21 2/week @ 2024-10-28 3/week @ 2024-11-04

278 downloads per month

MIT license

8KB
176 lines

firo_logger

firo_logger is a simple, customizable logger for Rust applications that supports colored console output and file logging.

Installation

Add this to your Cargo.toml:

[dependencies]
firo_logger = "*.*.*"
use firo_logger::Logger;

fn main() {
    log_error!("Error occurred: {}", "File not found");
    log_success!("Operation completed successfully: {}", "data.txt");
    log_info!("User {} logged in", "Alice");

}

Output

2024-10-01 10:32:45 [INFO]:    Test logg
2024-10-01 10:32:45 [ERROR]:   Test error
2024-10-01 10:32:45 [WARNING]: Test warn

Dependencies

~1MB
~18K SLoC