5 releases
new 0.1.5 | Dec 20, 2024 |
---|---|
0.1.4 | Dec 18, 2024 |
0.1.3 | Dec 18, 2024 |
0.1.2 | Dec 16, 2024 |
0.1.1 | Dec 15, 2024 |
#397 in Debugging
347 downloads per month
Used in 3 crates
8KB
129 lines
Ferrite Logging
Logging infrastructure for the Ferrite image viewer.
Features
- Log level configuration through environment variables and CLI
- Tracy profiler integration for performance monitoring
- Simple initialization API
- Type-safe log level handling
Usage
use ferrite_logging::{LogConfig, LogLevel, init};
// Basic setup with default config
let config = LogConfig::default();
init(config);
// Custom setup with Tracy enabled
let config = LogConfig {
level: LogLevel::Debug,
enable_tracy: true,
};
init(config);
// Get log level from RUST_LOG environment variable
let level = ferrite_logging::get_log_level_from_env();
Dependencies
~6–31MB
~460K SLoC