Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.37 KB

UPGRADE.md

File metadata and controls

41 lines (31 loc) · 1.37 KB

Upgrading

Some changes may require to update your configuration.

Upgrade from 4.x to 5.x

  • Version 5.0.0 of this library upgraded from Java 8 to Java 11.
  • UDP compression configuration changed from useCompression to compressionMethod and now defaults to GZIP instead of ZLIB.
  • Default of includeMarker changed to false. Serialization format of markers has changed.

Upgrade from 3.x to 4.x

  • No changes on the configuration were introduced. All changes are only relevant if used programmatically.
  • API of MessageIdSupplier has changed.
  • GelfEncoder uses different field mapping approach.
  • GelfMessage returns JSON as byte[] instead of String.

Upgrade from 2.x to 3.x

  • Version 3.0.0 of this library upgraded from Java 7 to Java 8.
  • The server's certificate hostname now gets verified by GelfTcpTlsAppender.
  • The trustAllCertificates property of GelfTcpTlsAppender was renamed to insecure.
  • The default value of numbersAsString of GelfEncoder was changed from true to false.

Upgrade from 1.x to 2.x

  • Version 2.0.0 of this library introduced a configuration change.

Old format:

<layout class="de.siegmar.logbackgelf.GelfLayout">
    ...
</layout>

New format:

<encoder class="de.siegmar.logbackgelf.GelfEncoder">
    ...
</encoder>

This change was introduced, as the API of the Encoder interface changed in Logback 1.2.0.