feat: add .gitignore and update file paths

Add a .gitignore file to exclude target, private_repos, and log directories. Update TftpScore and HttpScore file paths in `main.rs` to use relative paths from the project root. Modify `HarmonyTUI` initialization in `lib.rs` to create log directory if it doesn't exist before setting the log file path.
This commit is contained in:
2025-02-12 16:27:56 -05:00
parent 96bbef8195
commit 0eb9e02b99
3 changed files with 7 additions and 3 deletions

View File

@@ -110,7 +110,8 @@ impl HarmonyTUI {
tui_logger::init_logger(log::LevelFilter::Info).unwrap();
// Set default level for unknown targets to Trace
tui_logger::set_default_level(log::LevelFilter::Info);
tui_logger::set_log_file("harmony.log").unwrap();
std::fs::create_dir_all("log")?;
tui_logger::set_log_file("log/harmony.log").unwrap();
color_eyre::install()?;
let mut terminal = ratatui::init();