Skip to content

Releases: SAP/cf-java-logging-support

v3.3.0

16 Dec 12:26
Compare
Choose a tag to compare

This release restructures the servlet module. It allows for greater flexibility in configuration and easier extensibility. You can now mix and match different features of the RequestLoggingFilters to better suit your use-case. Additionally, you can integrate your own DynamicLogLevelProcessor implementation. It is now also easier to propagate HTTP headers to your log messages.

Improvements:

  • Extraction of Filters for HTTP request instrumentation
  • StaticLevelRequestLoggingFilter without JWT dependencies
  • DynamicLogLevelFilter extensible by custom DynamicLogLevelProcessor and DynamicLogLevelConfiguration
  • Performance improvement by saving Logger instantiations
  • Support for SAP Passport tracing headers

v3.2.1

13 Nov 13:46
Compare
Choose a tag to compare

Fixes:

  • WrappedInputStream now delegates all methods to wrapped stream
  • x-vcap-request-id headers are added as field request_id to all log messages by RequestLoggingFilter

v3.2.0

27 Oct 09:17
Compare
Choose a tag to compare

This release introduce a new filtering approach for dynamic log levels. It is
now possible to restrict the messages according to the package or class, that
created the log messages. See the Wiki on Dynamic Log Levels for details.
Furthermore, automatic generation timestamps in field written_ts was changed
to increase precision. The actual granularity depends on the Java Version and
JVM. Starting with Java 9, the resolution can be nanoseconds, depending on the
JVM.

Improvements:

  • new filters for dynamic log levels
  • higher precision for written_ts
  • upgrade Unit to v4.13.1

Note: The library has been compiled against Java 8 since version 3.0.0, but
the code remained compatible with Java 6. This release switches the syntax
checker to allow Java 8, which has been used for the new features.

v3.1.0

20 Jul 09:55
Compare
Choose a tag to compare

The main change on this release is the refactoring of the custom fields feature.
A new format of the JSON messages was introduced by SAP CloudPlatform CloudFoundry.
Version 3.1.0 implements this new format. It does not change the Java API of the library.
There are some improvements on the functionality:

  • CustomFields.customField log arguments always takes precedence over MDC fields.
  • CustomFields.customField log arguments need to be configured as custom fields like MDC fields.

Dependency Upgrades:

  • log4j to 2.13.3
  • slf4j to 1.7.25

v3.0.9

19 Jun 06:46
Compare
Choose a tag to compare

Improvements:

  • Added tenant_subdomain
  • Updated the Documentation

Fixes:

  • fixed timestamp_ms using System.nanoTime(), which resulted in timestamps not correlated to the real current time.
    Now it is calculated using System.currentTimeMillis(), which will provide real current timestamps.

v3.0.8

03 Apr 11:46
Compare
Choose a tag to compare

Improvements:

  • RequestLoggingFilter will not wrap requests and responses if no request log is emitted due to logging configuration
  • refreshed documentation of fields

Fixes:

  • jaxb-dependency migrate according to #57

v3.0.7

11 Feb 08:44
Compare
Choose a tag to compare

Fix:

  • protect against JSON injection in fields "thread" and "logger"

v3.0.6

21 Jan 11:44
Compare
Choose a tag to compare

Fixes:

  • upgrade Java-JWT to v3.8.3
  • upgrade jackson-databind to v2.10.1
  • support mark/reset/seek for WrappedInputReader and do not miss newlines in length calculation

v3.0.5

18 Oct 06:47
e626102
Compare
Choose a tag to compare

Fix:
Read organization id and organization name from VCAP environment.

v3.0.4

02 Aug 12:00
d818cbb
Compare
Choose a tag to compare