Repository navigation
2.0.0
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
tagfield. 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
falseto 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 theJSONcode from the Ruby standard library for consistency.JSONis 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