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

Clarify on relationship between FilterBuilder and max-level #80

Open
pronebird opened this issue Sep 3, 2024 · 0 comments
Open

Clarify on relationship between FilterBuilder and max-level #80

pronebird opened this issue Sep 3, 2024 · 0 comments

Comments

@pronebird
Copy link

Hi,

Could you please clarify why do we need max_level and filter at the same time? I understand that we can set the log level for individual crates but how does debug, in the filter string affects the max level that we set? (trace)

android_logger::init_once(
        Config::default()
            .with_max_level(LevelFilter::Trace)
            .with_tag("mytag")
            .with_filter(FilterBuilder::new().parse("debug,hello::crate=trace").build()),
    );
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

No branches or pull requests

1 participant