Skip to content

2.0.0

Choose a tag to compare

@bdurand bdurand released this 19 Jul 18:40
fee4285

Added

  • Field mapping for the JSON can now be set to an array where the first element is the key to map and the second element is a callable object that will transform the value.
  • Output can be set to pretty for better display in development environments.
  • Added post_processor option to allow custom processing of the log entry hash before it is written to the output stream.

Changed

  • Tag structure is now consistently expanded from dot notation into nested hashes in the tag field. Previoulsly this was only done when the template copied tags to the root level of the JSON document.
  • The mapping options now supports setting the value to false to exclude a field from the JSON output.
  • Tag mapping can now be set to "*" to copy all tags into the root of the JSON document.

Removed

  • Remove gem dependency on multi_json. The gem now uses the JSON code from the Ruby standard library for consistency. JSON is also now amoung the fastest JSON libraries available in Ruby so performance is no longer a concern.
  • Removed support for Ruby versions below 2.5.

Full Changelog: https://github.com/bdurand/lumberjack_json_device/commits/v2.0.0