bevy/examples/app
Doonv 14c20a6c9c
Add access to App within LogPlugin::update_subscriber (#12045)
# 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))
  }
```
2024-03-04 00:01:05 +00:00
..
custom_loop.rs
drag_and_drop.rs Refactor EventReader::iter to read (#9631) 2023-08-30 14:20:03 +00:00
empty_defaults.rs
empty.rs
headless.rs Fix intra-doc link warnings (#10445) 2023-11-08 14:33:46 +00:00
log_layers_ecs.rs Add access to App within LogPlugin::update_subscriber (#12045) 2024-03-04 00:01:05 +00:00
log_layers.rs Add access to App within LogPlugin::update_subscriber (#12045) 2024-03-04 00:01:05 +00:00
logs.rs fix some typos (#12038) 2024-02-22 18:55:22 +00:00
no_renderer.rs Add configuration for async pipeline creation on RenderPlugin (#11847) 2024-02-16 13:35:47 +00:00
plugin_group.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
plugin.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
return_after_run.rs fix some typos (#12038) 2024-02-22 18:55:22 +00:00
thread_pool_resources.rs
without_winit.rs