bevy/crates/bevy_log/src
Shane e600e2c1b1
Move the default LogPlugin filter to a public constant (#14958)
# Objective

This moves the default `LogPlugin` filter to be a public constant so
that it can be updated and referenced from outside code without changes
across releases:

```
fn main() {
    App::new().add_plugins(
        DefaultPlugins
            .set(bevy::log::LogPlugin {
                filter: format!("{},mylogs=error", bevy::log::LogPlugin::DEFAULT_FILTER),
                ..default()
            })).run();
}
```

## Testing

Tested with `cargo run -p ci`
2024-08-29 12:15:49 +00:00
..
android_tracing.rs Fix unhandled null characters in Android logs (#12743) 2024-03-29 03:04:46 +00:00
lib.rs Move the default LogPlugin filter to a public constant (#14958) 2024-08-29 12:15:49 +00:00