Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: Initialize env_logger to actually see log output #145

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

MarijnS95
Copy link
Member

log only provides the facade, and needs an explicitly initialized logger to emit output to stdout. The env_logger crate is typically used across the Rust ecosystem, but unfortunately initializes with a default of off unless the RUST_LOG variable is set: default it to trace instead (we mostly log on info though).

`log` only provides the facade, and needs an explicitly initialized
logger to emit output to `stdout`.  The `env_logger` crate is typically
used across the Rust ecosystem, but unfortunately initializes with a
default of `off` unless the `RUST_LOG` variable is set: default it to
`trace` instead (we mostly log on `info` though).
@MarijnS95 MarijnS95 requested a review from janie177 January 18, 2023 18:36
@MarijnS95 MarijnS95 merged commit d6fa06a into main Jan 19, 2023
@MarijnS95 MarijnS95 deleted the init-logger branch January 19, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants