personal_website/src/logger.rs

19 lines
468 B
Rust
Raw Normal View History

2024-03-23 20:03:16 +00:00
use simplelog::*;
pub fn init_logger() {
// TODO: figure out what these do
let config = ConfigBuilder::new()
.build();
CombinedLogger::init(
vec![
TermLogger::new(LevelFilter::Debug, config, TerminalMode::Mixed, ColorChoice::Auto),
// TODO: Set up loggin to file
// WriteLogger::new(LevelFilter::Info, Config::default(), File::create("my_rust_binary.log").unwrap()),
]
).unwrap();
}