Use Jackson directly to serialise the Log4j log events.
Removes the old pattern layout approach.
The new approach provides several callback and customisation
features. They enable users to extend the library within their own
applications. Furthermore, support for custom fields has been
extended to support non-string values for top level fields. Also,
CloudFoundry's VCAP environment variables are no longer added
by default. The user has to opt in those fields
The refactoring gives a factor 3 improvement on the JMH benchmarks
for simple logs and an unchanged performance for request logs:
Use Jackson directly to serialise the Log4j log events. Removes the old pattern layout approach. The new approach provides several callback and customisation features. They enable users to extend the library within their own applications. Furthermore, support for custom fields has been extended to support non-string values for top level fields. Also, CloudFoundry's VCAP environment variables are no longer added by default. The user has to opt in those fields
The refactoring gives a factor 3 improvement on the JMH benchmarks for simple logs and an unchanged performance for request logs: