Skip to content

Remove sensible data (IPs) from log #129

Open

Description

@asturm-fe

The logger returned by the SetLogger(...) method is always configured to log the ClientIP obtained from the request context.
As zerolog has no way of editing or removing fields from an existing logger, can the middleware have configuration to remove this field?
Maybe there already is a way to do this that I am not aware of - if so, please point me to it :)

TL;DR: I do not want to log sensible data by default

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions