bevy_log_events
bevy_log_events is a Bevy plugin that introduce the add_and_log_event function for Bevy's App. This plugin lets you log your Event while allowing you to configure independently how each Event are logged during program execution.
Features
- Log your events without having to place print in several places inside your code
- You can configure independently how each events will be logged using the
LoggedEventSettings<T>resources - Your settings are saved when you exit your application and reloaded the next time you launch it
- Using
bevy_editor_plsand theeditor_windowfeature, you can use a window to edit the settings for all your logged events :

Usage
Add the crate to your Cargo.toml :
cargo add bevy_log_events
Then you just have to add the LogEventsPlugin plugin and use add_and_log_event to register your events instead of add_event :
use ;
use *;
// You must implement Debug for the events you want to log
;
// MyEvent will be sent and logged every second
Examples
To run the minimal example from above :
cargo run --example simple
To run an example with more events and the bevy_editor_pls window use :
cargo run --example window --features editor_window
Notes
Events are all logged in the Last schedule inside the LogEventSet therefore if many events are sent in the same frame they will not be logged in the same order they are sent.
Bevy Versions Table
| Bevy | bevy_auto_log_events |
|---|---|
| 0.13 | 0.1 |