multiline-logger 0.2.1

Personal logger implementation
Documentation
// SPDX-License-Identifier: MIT OR Apache-2.0
//! example log use

use std::path::Path;

use log::LevelFilter;

fn main() {
	multiline_logger::Settings {
		title: "logger test",
		filters: &[("", LevelFilter::Trace)],
		file_out: Some(Path::new("target/test.log")),
		console_out: true,
		#[expect(clippy::print_stdout, reason = "demo")]
		panic_hook: Some(|info| {
			println!(
				"Custom panic handler\nPanic info: {info:?}\nBacktrace: {:?}",
				info.trace.as_string()
			);
		}),
	}
	.init();
	log::trace!("Trace\n");
	log::debug!("Debug\n{:?}", [1, 2, 3, 4]);
	log::info!("Info: {}", 7);
	log::warn!("Warn {:#?}", [0, 9, 8, 7]);
	log::error!("Error");
	panic!("Panic Message");
}