Expand description
Logging module - available when std feature is enabled.
Logging module for physdes-rs.
This module provides optional logging capabilities when the std feature is enabled.
It uses env_logger for flexible logging configuration via environment variables.
§Usage
use physdes::logging::init_logger;
fn main() {
init_logger();
log::info!("Application started");
}§Environment Variables
RUST_LOG: Controls log level (debug, info, warn, error)RUST_LOG_STYLE: Controls colored output
Example:
RUST_LOG=debug cargo run --features stdFunctions§
- init_
logger - Initialize the logger with default filter (info).
- init_
logger_ with_ filter - Initialize the logger with a custom filter string.
- is_
logger_ initialized - Check if the logger has been initialized.
- try_
init_ logger - Try to initialize the logger with default filter (info).
- try_
init_ logger_ with_ filter - Try to initialize the logger with a custom filter string.