Expand description
This crate provides logging functions and configuration for Bevy apps, and automatically configures platform specific log handlers (i.e. WASM or Android).
The macros provided for logging are reexported from tracing
,
and behave identically to it.
By default, the LogPlugin
from this crate is included in Bevy’s DefaultPlugins
and the logging macros can be used out of the box, if used.
For more fine-tuned control over logging behavior, set up the LogPlugin
or
DefaultPlugins
during app initialization.
Modules
- The Bevy Log Prelude.
Macros
- Constructs an event at the debug level.
- Constructs a span at the debug level.
- Constructs an event at the error level.
- Constructs a span at the error level.
- Constructs an event at the info level.
- Constructs a span at the info level.
- Constructs an event at the trace level.
- Constructs a span at the trace level.
- Constructs an event at the warn level.
- Constructs a span at the warn level.
Structs
- Describes the level of verbosity of a span or event.
- Adds logging to Apps. This plugin is part of the
DefaultPlugins
. Adding this plugin will setup a collector appropriate to your target platform: