6.2.0
- Added :encoder_opts formatter option which allows passing any options down to
Jason
encoder, eg. if you want to format the output during development. Thanks to @anthonator; - Keep native DateTime, Date and Time structs when encoding them. This prevents those structs from being logged as maps. Thanks to @imricardoramos;
- Always return :ok even if nothing is logged fixes a bug when plug logger is configured not to return anything. Thanks to @adamu;
- A new
metadata
option is added which allows reading configuration from the default logger or any other place in the application environment. The downside of using it is that the application environment will be read on every logged message (since there is no way to init the state of:logger
formatter); - Replace μs with us because unicode is not always available in log aggregators. This value then also will be copied to appropriate provider-specific field. And separately copy it to an appropriate field depending on the formatter used. Thanks to @bvobart;
- Various docs, typos, and typespec fixes. Thanks to @dvic, @moxley.
- Fix Task/GenServer exits correctly in Google Cloud Logger formatter. Thanks @BrentWheeldon.