SAP/cf-java-logging-support

Allow dynamic log level based on Logger names

KarstenSchnitter opened this issue · 0 comments

Introduction

Log levels are usually configured by logger names. Typically the fully qualified class name is used. This allows configuration of log levels on a package basis. The current dynamic log level feature only allows to change the log level globally without any finer control. There should be the possibility to have more control on what classes the log level is changed dynamically.

Proposal

Provide new configurable filters for logback and log4j2, that can be used to apply the dynamic log levels. The JWT token should be extended by a field containing a comma-separated list of prefixes, by which the logger names are filtered. The dynamic log level should only be applied to loggers, that match the prefix.