-
Is there a way to send Bevy logs to a file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use your own tracing subscriber using 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. |
Beta Was this translation helpful? Give feedback.
You can use your own tracing subscriber using
bevy::utils::tracing::subscriber::set_global_default()
. Make sure to disable theLogPlugin
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.