Crates.io | bevy_debug_log |
lib.rs | bevy_debug_log |
version | |
source | src |
created_at | 2024-10-09 22:11:39.925442 |
updated_at | 2024-12-02 09:43:43.094228 |
description | Allows viewing tracing debug log output inside the bevy app using vanilla bevy_ui. |
homepage | |
repository | https://github.com/rustunit/bevy_debug_log |
max_upload_size | |
id | 1403128 |
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` |
size | 0 |
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.
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!
bevy | bevy_debug_log |
---|---|
0.15 | 0.4, main |
0.14 | 0.1, 0.2, 0.3 |
bevy_debug_log is dual-licensed under either MIT or Apache 2.0, at your option.