SAP/cf-java-logging-support

Major Release 4.0

Opened this issue · 2 comments

There have been a lot of changes in Java and the logging frameworks, that need to be integrated into this library. This will require a new major version. The following changes are suggested, please leave comments and further suggestions in this issue.

Upgrades:

  • Java 17 required, Jakarta bindings (e.g servlet)
  • SLF4j 2.x, with necessary upgrades of Logback (1.4.x+) and Log4j2

Removals:

  • cf-java-logging-support-jersey (Jersey integration)
  • cf-java-logging-support-servlet (to be replaced by cf-java-logging-support-servlet-jakarta)
  • cf-java-monitoring-custom-metrics-clients/* (custom metrics support)
  • sample (Jersey sample app, Spring Boot will stay)

New Features:

  • SPI support for Co ntextFieldSupplier, LogbackContextFieldSupplier, Log4jContextFieldSupplier
  • SPI support for DynamicLogLevelConfiguration and DynamicLogLevelProcessor
  • W3CTraceContext support
  • OpenTelemetry SpanContext support
  • OpenTelemetry SAP CF resource provider (to provide meaningful resource attributes)
  • SAP Cloud Logging OpenTelemetry binding auto-configuration

Refactors:

  • Move Dynamic Log Level feature to own module, so that java-jwt dependency is no longer required by cf-java-logging-support-servlet

Hi @KarstenSchnitter, is there any timeline for this major release?

The first release candidate 4.0.0-RC1 was published today. The documentation has not been adjusted, yet. It will be changed when the final release is published. Changes to the configuration are minimal though. If you are using the dynamic log level feature, you will experience incompatibilities to the 3.x releases. Note, that the cf-java-logging-servlet module is now only available with Jakarta bindings.