Skip to content

More granular logging configuration #1474

Closed

Description

@ELymar

Expected Behavior / New Feature

Could it be possible to give more control over what gets logged? We have API keys that get passed in as query parameters, and the logger ends up storing them in plaintext in our logs. Could we disable logging query parameters, or perhaps just not logging for certain endpoints? If there is a workaround (besides passing keys in the header) I'd also appreciate suggestions.

Actual Behavior / Motivation for New Feature

Currently by adding a logger via DI, all requests that go through the system are logged along with their query parameters.

Steps to Reproduce the Problem

N/A

Specifications

  • Version: latest
  • Platform: Azure Service Fabric
  • Subsystem:

Activity

  1. added
    question
    on Jan 6, 2024
  2. locked and limited conversation to collaborators on Jan 6, 2024
  3. converted this issue into a discussion #1891 on Jan 6, 2024
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

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions