How to make logging work? #2852
-
Hi there, fn main() {
App::build()
.insert_resource( LogSettings { level: Level::INFO, filter: "".to_string() })
.add_plugin(LogPlugin::default())
.add_plugins(MinimalPlugins)
.add_system(logging_something_nice_every_frame.system())
.run();
} The program is running but no logs shown on the console. Thx for help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can check out the examples. If you're targeting the main branch of Bevy: If you are targeting the latest Bevy release: |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
In
logging_something_nice_every_frame
, are you logging usingbevy_log::info!
(a reexport oftracing::info
) or usinglog::info
from thelog
crate? The latter doesn't automatically get picked up byLogPlugin
s tracing subscriber.