#logging-tracing #bevy #testing #logging

bevy_debug_log

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

11 releases (6 breaking)

0.7.0 Oct 18, 2025
0.6.0 Apr 25, 2025
0.5.0 Jan 7, 2025
0.4.2 Dec 14, 2024
0.1.1 Oct 10, 2024

#834 in Game dev

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. Beware that currently using this crate will enable bevy/default_font. Consider only enabling it in debug builds.

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 crate
0.17 0.7, main
0.16 0.6
0.15 0.4, 0.5
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

~66–105MB
~2M SLoC