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

Replace "logger" crate with env_logger+log #43

Merged
merged 1 commit into from
May 30, 2022
Merged

Conversation

slp
Copy link
Contributor

@slp slp commented May 26, 2022

Drop logger crate and use env_logger+log instead. env_logger allows
users to enable logging on selected modules by setting the RUST_LOG
environment variable. For instance, it's possible to enable all
messages for the virtio fs device by setting RUST_LOG this way:

export RUST_LOG=devices::virtio::fs=debug

It's also possible to configure logging for multiple submodules at the
same time:

export RUST_LOG=devices::virtio::fs=debug,vmm=debug

Signed-off-by: Sergio Lopez slp@redhat.com

@slp slp force-pushed the drop-logger branch 2 times, most recently from e0b0ad9 to 34d0b9f Compare May 27, 2022 11:37
Drop logger crate and use env_logger+log instead. env_logger allows
users to enable logging on selected modules by setting the RUST_LOG
environment variable. For instance, it's possible to enable all
messages for the virtio fs device by setting RUST_LOG this way:

export RUST_LOG=devices::virtio::fs=debug

It's also possible to configure logging for multiple submodules at the
same time:

export RUST_LOG=devices::virtio::fs=debug,vmm=debug

Signed-off-by: Sergio Lopez <slp@redhat.com>
@slp slp merged commit ca5f62a into containers:main May 30, 2022
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.

None yet

1 participant