Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.