@@ -31,6 +31,8 @@ fn setup_logging(verbosity: u64) -> Result<(), fern::InitError> {
3131 _3_or_more => base_config.level(log::LevelFilter::Trace),
3232 };
3333
34+ let home = dirs_next::home_dir().expect("can't find the home directory");
35+
3436 // Separate file config so we can include year, month and day in file logs
3537 let file_config = fern::Dispatch::new()
3638 .format(|out, message, record| {
@@ -42,7 +44,7 @@ fn setup_logging(verbosity: u64) -> Result<(), fern::InitError> {
4244 message
4345 ))
4446 })
45− .chain(fern::log_file("helix.log")?);
47+ .chain(fern::log_file(home.join("helix.log"))?);
4648
4749 base_config.chain(file_config).apply()?;
4850