SAP / cf-java-logging-support

The Java Logging Support for Cloud Foundry supports the creation of structured log messages and the collection of request metrics
Apache License 2.0
77 stars 48 forks source link

Refactor Servlet Filters #88

Closed KarstenSchnitter closed 3 years ago

KarstenSchnitter commented 3 years ago

The original RequestLoggingFilter bundled a lot of functionality. This PR extracts the features in distinct filters to be mixed and matched for custom configurations and extensions. This allows users to restrict the features they want from the servlet instrumentation and provides extension points. One example is contained in the PR with the StaticLevelRequestLoggingFilter, that removes the dynamic log level feature. Users can exclude the java-jwt dependency when using that filter. The RequestLoggingFilter was reimplemented to preserve compability.