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
278 downloads per month
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