firo_logger

Crates.iofiro_logger
lib.rsfiro_logger
version0.2.1
sourcesrc
created_at2024-10-01 09:28:36.323744
updated_at2024-10-18 12:46:29.859049
descriptionA logger that prints colours
homepage
repository
max_upload_size
id1392668
size9,023
(Mightybeast12)

documentation

README

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
Commit count: 0

cargo fmt