pub fn init_simple_stdout_logger(level: LevelFilter) -> Result<(), LogError>Expand description
Initialize a minimal stdout-only logger with just the specified level.
This is the simplest way to get a stdout-only logger with a specific level.
§Arguments
level- The minimum log level to display.
§Returns
Ok(()) if initialization succeeded, or an error if it failed.
§Example
use fstdout_logger::init_simple_stdout_logger;
use log::LevelFilter;
init_simple_stdout_logger(LevelFilter::Info)
.expect("Failed to initialize simple logger");