diff --git a/Cargo.lock b/Cargo.lock index 716f5e5..a5b895e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3091,8 +3091,10 @@ dependencies = [ "bevy", "bevy_ratatui", "clap", + "log", "ratatui", "strum 0.27.2", + "tracing-subscriber", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 604de23..8f0752e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,10 @@ readme = false bevy = { version = "0.17.3", features = ["dynamic_linking"] } bevy_ratatui = "0.10.0" clap = { version = "4.5.54", features = ["derive"] } +log = { version = "0.4.29", features = ["release_max_level_error", "max_level_trace"] } ratatui = "0.29.0" strum = { version = "0.27.2", features = ["derive"] } +tracing-subscriber = "0.3.22" [profile.dev] opt-level = 1 diff --git a/src/main.rs b/src/main.rs index 2bfa232..1e22099 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,11 @@ enum Mode { } fn main() { + tracing_subscriber::fmt() + .with_writer(std::io::stderr) + .with_env_filter("warn,jong=trace") + .init(); + let args = Args::parse(); let mut app = App::new();