The dynamic log level feature allows changes of the log level by a JWT token in an HTTP request.
This allows e.g. debug output for a specific request. However, the filtering will allow all log messages
of the provided log level to be emitted. To increase control about which classes will generate log
messages at finer granularity two new filters are provided. They allow a comma-separated list of
package names, for which the dynamic log level will be applied. The JWT token is extended by a
claim packages, that takes the list.
Extending the existing filters was not an option, since they globally reject all messages not matching
the required log level. In the new approach the statically configured rules on log levels still need to
be applied. The user can therefore choose, which logging filter is to be used.
This PR adresses #68.
The dynamic log level feature allows changes of the log level by a JWT token in an HTTP request. This allows e.g. debug output for a specific request. However, the filtering will allow all log messages of the provided log level to be emitted. To increase control about which classes will generate log messages at finer granularity two new filters are provided. They allow a comma-separated list of package names, for which the dynamic log level will be applied. The JWT token is extended by a claim
packages
, that takes the list.Extending the existing filters was not an option, since they globally reject all messages not matching the required log level. In the new approach the statically configured rules on log levels still need to be applied. The user can therefore choose, which logging filter is to be used.