bevy_debug_log

Crates.iobevy_debug_log
lib.rsbevy_debug_log
version
sourcesrc
created_at2024-10-09 22:11:39.925442
updated_at2024-12-02 09:43:43.094228
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
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(extrawurst)

documentation

README

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.

Commit count: 19

cargo fmt