Skip to content

Allow customization of log levels #552

@turing85

Description

@turing85

Is your feature request related to RFC7807? Please describe.
No.

Describe the solution you'd like
Currently, the ProblemLogger logs everything to log level INFO when the response is < 500 and everything >=500 on level ERROR.

It would be nice to:

  • have a way to turn off logging completely (without setting the min-level for http-problem to FATAL),
  • be able to define a default log level, and
  • to be able to define a log level per response code and/or response code range (e.g. 401 and 403 on level WARN, everything else < 500 on level INFO, everything >= 500 on level WARN)

Additional information
This is slightly related to #512, but #512 focuses on stack traces, while this issue focuses on the log level.

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