Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-21T09:56:27.000Z (2 months ago)
- Last Synced: 2024-10-21T14:20:38.302Z (2 months ago)
- Topics: bevy, gamedev, logging
- Language: Rust
- Homepage: https://crates.io/crates/bevy_debug_log
- Size: 1.88 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# bevy_debug_log
[![Following released Bevy versions](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue)](https://bevyengine.org/learn/quick-start/plugin-development/#main-branch-tracking)
[![crates.io](https://img.shields.io/crates/v/bevy_debug_log)](https://crates.io/crates/bevy_debug_log)
[![docs.rs](https://docs.rs/bevy_debug_log/badge.svg)](https://docs.rs/bevy_debug_log)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](./assets/demo.png)
## 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::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](/CONTRIBUTING.md)
## Our Other Crates
- [bevy_device_lang](https://github.com/rustunit/bevy_device_lang)
- [bevy_ios_review](https://github.com/rustunit/bevy_ios_review)
- [bevy_ios_impact](https://github.com/rustunit/bevy_ios_impact)
- [bevy_ios_alerts](https://github.com/rustunit/bevy_ios_alerts)
- [bevy_ios_iap](https://github.com/rustunit/bevy_ios_iap)
- [bevy_ios_notifications](https://github.com/rustunit/bevy_ios_notifications)
- [bevy_ios_gamecenter](https://github.com/rustunit/bevy_ios_gamecenter)
- [bevy_web_popups](https://github.com/rustunit/bevy_web_popups)
- [bevy_libgdx_asset](https://github.com/rustunit/bevy_libgdx_asset)## Compatible Bevy Versions
|bevy|bevy_debug_log|
|-|-|
|0.14|0.1|## 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.