pub fn init_development_logger<P: AsRef<Path>>(
file_path: Option<P>,
) -> Result<(), LogError>Expand description
Initialize a development logger (with file info, colored output).
This uses LoggerConfig::development() which is optimized for
detailed output during development:
Debugas the minimum log level (shows debug messages)- File information shown in logs (helps with debugging)
- No date in stdout output (only time)
- Colors enabled for better readability
§Arguments
file_path- Optional path to a log file. IfNone, logs will only go to stdout.
§Returns
Ok(()) if initialization succeeded, or an error if it failed.
§Example
use fstdout_logger::init_development_logger;
init_development_logger(Some("debug.log"))
.expect("Failed to initialize development logger");