#bevy #logging #gamedev #testing #debugging #log-level #log-viewer

bevy_debug_log

Allows viewing tracing debug log output inside the bevy app using vanilla bevy_ui

9 releases (4 breaking)

new 0.5.0 Jan 7, 2025
0.4.2 Dec 14, 2024
0.4.0 Nov 30, 2024
0.3.0 Nov 24, 2024
0.1.1 Oct 10, 2024

#414 in Game dev

Download history 58/week @ 2024-10-03 323/week @ 2024-10-10 34/week @ 2024-10-17 20/week @ 2024-10-24 281/week @ 2024-10-31 58/week @ 2024-11-07 54/week @ 2024-11-14 177/week @ 2024-11-21 317/week @ 2024-11-28 66/week @ 2024-12-05 158/week @ 2024-12-12 15/week @ 2024-12-19 86/week @ 2025-01-02

261 downloads per month

MIT/Apache

52KB
1K SLoC

bevy_debug_log

Following released Bevy versions crates.io docs.rs discord

Allows viewing the tracing debug log output inside the app - particularly on platforms like mobile where you have no easy way to follow the terminal output.

demo

Usage

App::new().add_plugins((
    DefaultPlugins.set(LogPlugin {
        filter: "info".into(),
        level: bevy::log::Level::INFO,
        // provide custom log layer to receive logging events
        custom_layer: bevy_debug_log::log_capture_layer,
    }),
    // register our plugin
    bevy_debug_log::LogViewerPlugin::default(),
));


// in any bevy system use this trigger to toggle the debug log ui on and off
commands.trigger(LogViewerVisibility::Toggle);

[!TIP] Run cargo run --example simple to see this example for yourself!

Contributing

See our CONTRIBUTING.md

Our Other Crates

Compatible Bevy Versions

bevy bevy_debug_log
0.15 0.4, main
0.14 0.1, 0.2, 0.3

License

bevy_debug_log is dual-licensed under either MIT or Apache 2.0, at your option.

Dependencies

~54–85MB
~1.5M SLoC