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.
Is your feature request related to RFC7807? Please describe.
No.
Describe the solution you'd like
Currently, the
ProblemLoggerlogs everything to log levelINFOwhen the response is< 500and everything>=500on levelERROR.It would be nice to:
min-levelforhttp-problemtoFATAL),401and403on levelWARN, everything else< 500on levelINFO, everything>= 500on levelWARN)Additional information
This is slightly related to #512, but #512 focuses on stack traces, while this issue focuses on the log level.