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

Expose additional filters for observed logs #943

Merged
merged 3 commits into from Jun 8, 2021

Commits on May 23, 2021

  1. Expose zaptest.observer.(*ObservedLogs).Filter

    Export method  `observer.(*ObservedLogs).Filter` to allow consumers to
    filter logs by arbitrary functions for testing.
    
    Currently consumers can call `(*ObservedLogs).All` and proceed to filter
    using `[]LoggedEntry` directly, but the result is then incompatible with
    existing methods such as `FilterMessage` because there is now way to
    re-construct an `*ObservedLogs` object.
    jkanywhere committed May 23, 2021
    Copy the full SHA
    aefe3c4 View commit details
    Browse the repository at this point in the history
  2. Add zaptest.observer.(*ObservedLogs).FilterLevelExact

    Method `observer.(*ObservedLogs).FilterLevelExact` allows consumers to select
    entries logged at a given level, for testing.
    jkanywhere committed May 23, 2021
    Copy the full SHA
    130ef27 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Copy the full SHA
    4223fa6 View commit details
    Browse the repository at this point in the history