https://github.com/rustunit/bevy_debug_log
Access tracing logs in your bevy app using vanilla bevy_ui
https://github.com/rustunit/bevy_debug_log
bevy gamedev logging
Last synced: 9 months ago
JSON representation
Access tracing logs in your bevy app using vanilla bevy_ui
- Host: GitHub
- URL: https://github.com/rustunit/bevy_debug_log
- Owner: rustunit
- License: apache-2.0
- Created: 2024-10-09T16:13:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-26T23:37:42.000Z (10 months ago)
- Last Synced: 2025-04-21T07:00:51.038Z (10 months ago)
- Topics: bevy, gamedev, logging
- Language: Rust
- Homepage: https://crates.io/crates/bevy_debug_log
- Size: 5.87 MB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# bevy_debug_log
[](https://bevyengine.org/learn/quick-start/plugin-development/#main-branch-tracking)
[](https://crates.io/crates/bevy_debug_log)
[](https://docs.rs/bevy_debug_log)
[![discord][sh_discord]][lk_discord]
[sh_discord]: https://img.shields.io/discord/1176858176897953872?label=discord&color=5561E6
[lk_discord]: https://discord.gg/rQNeEnMhus
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.

## Usage
```rust
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](/CONTRIBUTING.md)
## Our Other Crates
- [bevy_device_lang](https://github.com/rustunit/bevy_device_lang)
- [bevy_web_popups](https://github.com/rustunit/bevy_web_popups)
- [bevy_libgdx_atlas](https://github.com/rustunit/bevy_libgdx_atlas)
- [bevy_ios_iap](https://github.com/rustunit/bevy_ios_iap)
- [bevy_ios_review](https://github.com/rustunit/bevy_ios_review)
- [bevy_ios_gamecenter](https://github.com/rustunit/bevy_ios_gamecenter)
- [bevy_ios_alerts](https://github.com/rustunit/bevy_ios_alerts)
- [bevy_ios_notifications](https://github.com/rustunit/bevy_ios_notifications)
- [bevy_ios_impact](https://github.com/rustunit/bevy_ios_impact)
- [bevy_ios_safearea](https://github.com/rustunit/bevy_ios_safearea)
## Compatible Bevy Versions
|bevy|crate|
|-|-|
|0.16|0.6, main|
|0.15|0.4, 0.5, main|
|0.14|0.1, 0.2, 0.3|
## License
bevy_debug_log is dual-licensed under either [MIT](https://opensource.org/license/MIT) or [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0), at your option.