bevy_debug_log

Crates.iobevy_debug_log
lib.rsbevy_debug_log
version0.2.1
sourcesrc
created_at2024-10-09 22:11:39.925442
updated_at2024-11-01 10:16:28.412304
descriptionAllows viewing tracing debug log output inside the bevy app using vanilla bevy_ui.
homepage
repositoryhttps://github.com/rustunit/bevy_debug_log
max_upload_size
id1403128
size154,318
(extrawurst)

documentation

README

bevy_debug_log

Following released Bevy versions crates.io docs.rs

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::plugin,
));


// 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.14 0.1

License

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

Commit count: 9

cargo fmt