#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

8 unstable releases (3 breaking)

new 0.4.2 Dec 14, 2024
0.4.1 Dec 2, 2024
0.4.0 Nov 30, 2024
0.3.0 Nov 24, 2024
0.1.1 Oct 10, 2024

#417 in Game dev

Download history 245/week @ 2024-10-04 139/week @ 2024-10-11 35/week @ 2024-10-18 21/week @ 2024-10-25 289/week @ 2024-11-01 49/week @ 2024-11-08 56/week @ 2024-11-15 175/week @ 2024-11-22 329/week @ 2024-11-29 47/week @ 2024-12-06

611 downloads per month

MIT/Apache

45KB
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

~52–85MB
~1.5M SLoC