# Objective In my library, [`bevy_dev_console`](https://github.com/doonv/bevy_dev_console) I need access to `App` within `LogPlugin::update_subscriber` in order to communicate with the `App` from my custom `Layer`. ## Solution Give access to `App`. --- ## Changelog - Added access to `App` within `LogPlugin::update_subscriber` ## Migration Guide `LogPlugin::update_subscriber` now has a `&mut App` parameter. If you don't need access to `App`, you can ignore the parameter with an underscore (`_`). ```diff,rust - fn update_subscriber(subscriber: BoxedSubscriber) -> BoxedSubscriber { + fn update_subscriber(_: &mut App, subscriber: BoxedSubscriber) -> BoxedSubscriber { Box::new(subscriber.with(CustomLayer)) } ``` |
||
|---|---|---|
| .. | ||
| custom_loop.rs | ||
| drag_and_drop.rs | ||
| empty_defaults.rs | ||
| empty.rs | ||
| headless.rs | ||
| log_layers_ecs.rs | ||
| log_layers.rs | ||
| logs.rs | ||
| no_renderer.rs | ||
| plugin_group.rs | ||
| plugin.rs | ||
| return_after_run.rs | ||
| thread_pool_resources.rs | ||
| without_winit.rs | ||