mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Clarify RUST_LOG
override over LogSettings
(#3095)
# Objective Clarify the fact that setting the `RUST_LOG` environment variable overrides any setting from the `LogSettings` resource. ## Solution Update docstring comment for `LogSettings`.
This commit is contained in:
parent
36394adb2f
commit
0db1f4cd16
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ use tracing_subscriber::{prelude::*, registry::Registry, EnvFilter};
|
|||
///
|
||||
/// Log level can also be changed using the `RUST_LOG` environment variable.
|
||||
/// It has the same syntax has the field [`LogSettings::filter`], see [`EnvFilter`].
|
||||
/// If you define the `RUST_LOG` environment variable, the [`LogSettings`] resource
|
||||
/// will be ignored.
|
||||
///
|
||||
/// If you want to setup your own tracing collector, you should disable this
|
||||
/// plugin from `DefaultPlugins` with [`App::add_plugins_with`]:
|
||||
|
|
Loading…
Reference in a new issue