Skip to content
Discussion options

You must be logged in to vote

You can use your own tracing subscriber using bevy::utils::tracing::subscriber::set_global_default(). Make sure to disable the LogPlugin though as tracing only allows setting a global subscriber once. See https://github.com/bevyengine/bevy/blob/main/crates/bevy_log/src/lib.rs for the way the current console printing is implemented.

I do think we should make it easier to set up common log configurations like logging to files. Feel free to open an issue for that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samcarey
Comment options

Answer selected by bjorn3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants