use durylog::{error,warn,info,debug,trace,DLog};
fn main() {
DLog::new()
.with_color() .widh_timestamp_format("%Y-%m-%d %H:%M:%S") .widh_custom_separator(" | ") .with_file("log-custom.log").unwrap() .init_logger().ok();
error!("Error message");
warn!("Warning message");
info!("Info message");
debug!("Debug message");
trace!("Trace message");
}