Skip to content

LogLevelModuleFilter #8

Closed
Closed

Description

@tisonkun

Something like fern's level_for - https://docs.rs/fern/latest/fern/struct.Dispatch.html#method.level_for

It should be easy to implement by extending the code of LogLevelFilter with a module field.

Activity

  1. tisonkun commented on Aug 1, 2024

    @tisonkun
    ContributorAuthor

    Now you should refer to append::LevelFilter

  2. changed the title [-]LogLevelMoudleFilter[/-] [+]LogLevelModuleFilter[/+] on Aug 2, 2024
  3. tisonkun commented on Aug 2, 2024

    @tisonkun
    ContributorAuthor

    Here we have some decisions to make:

    • Basically, it's configured with (target, level).
    • How to match targets? Full match, prefix match, or even support regexp? I'd prefer prefix match.
    • Does each filter contain one pair, or can it contain multiple pairs? I'd prefer exactly one.
    • If multiple LogLevelModuleFilter configured? What's the manner? Especially if the targets are overlapped.
    • What is the priority between LogLevelModuleFilter and LevelFilter? Filters are applied in order, but when to short circuit the test (by Accepted/Rejected)
  4. tisonkun commented on Aug 2, 2024

    @tisonkun
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions