Crates.io | firo_logger |
lib.rs | firo_logger |
version | 0.2.1 |
source | src |
created_at | 2024-10-01 09:28:36.323744 |
updated_at | 2024-10-18 12:46:29.859049 |
description | A logger that prints colours |
homepage | |
repository | |
max_upload_size | |
id | 1392668 |
size | 9,023 |
firo_logger
is a simple, customizable logger for Rust applications that supports colored console output and file logging.
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");
}
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