Skip to content

Sampling interface #92

Description

@tekert

Hey, i was wondering if we could code a sampling interface, it would be nice to have an intermediate writter, so i can hash or count things in the log entry before writing it with the configured writer.
Can't access Entry fields directly as they're stored in a byte buffer, can only use e.Value() which returns the raw JSON bytes

edit: oh i see now, that the output is built step by step as a json string, so we can't get a variable like msg, level separately.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions