| Crates.io | ribo |
| lib.rs | ribo |
| version | 0.1.3 |
| created_at | 2025-10-08 03:57:15.342881+00 |
| updated_at | 2025-10-08 04:21:56.228813+00 |
| description | Ribo for universe, provide tons of util functions. |
| homepage | https://github.com/lucasjinreal/ribo |
| repository | https://github.com/lucasjinreal/ribo |
| max_upload_size | |
| id | 1873420 |
| size | 57,593 |
A collection of common utilities for Rust projects.
tracing and provides utility functions for initializing logging with a pre-configured formatThe logging utilities provide a pre-configured tracing setup with:
RUST_LOG environment variableuse ribo::utils::log;
use ribo::utils::log::{debug, error, info, warn};
use ribo::utils::log::{init_log, LogLevel};
fn main() {
println!("Testing default logging configuration...");
init_log(LogLevel::INFO);
info!("Info message with default config");
debug!("Debug message (might not show depending on RUST_LOG)");
warn!("Warning message");
error!("Error message");
}
For more advanced configuration:
use ribo::log;
fn main() {
// Initialize with custom filter
log::init_with_filter("info", true); // Show info and above, with colors
// Or use the basic init
log::init_log();
}
The module re-exports tracing, so projects using ribo don't need to depend on tracing directly.