Skip to content

Clarify on relationship between FilterBuilder and max-level #80

Open
@pronebird

Description

@pronebird

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()),
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions