Releases: dm-drogeriemarkt/structured-logging
Releases · dm-drogeriemarkt/structured-logging
3.0.0 - Java 17 and new convenience methods
- Breaking Change: Structured Logging now requires Java 17
- New Feature: Convenience methods using callbacks as an alternative to try-with-resources
- updated dependencies
configurable ObjectMapper
- New Feature: Made the used ObjectMapper configurable
- updated dependencies
Serialization of remaining java.time classes
added proper serialization for remaining java.time
types (MonthDay, YearMonth and Year)
Serialization of Duration
Merge pull request #11 from abadurczyk/add_duration add duration to object mapper
Fix: Correctly reset child thread's Context
Merge pull request #9 from dm-drogeriemarkt/finally make MdcTaskDecorator more readable (hopefully) and fix finally()
add OverwriteStrategy to (Spring)MdcTaskDecorator
Merge pull request #8 from dm-drogeriemarkt/allow_overwrite add OverwriteMode to Task Decorator
LocalTime serialization
Added proper serialization for missing JSR310 type LocalTime
more convenience, context updates
- Breaking Changes
- Renamed MdcContextId to MdcKeySupplier to make its purpose clear
- migration: change your code references from
MdcContextId
toMdcKeySupplier
- migration: change your code references from
- Removed generic type information from MdcContext because it is not necessary anymore
- migration: Change every use of
MdcContext<Foo, Bar>
to onlyMdcContext
- migration: Change every use of
- Renamed MdcContextId to MdcKeySupplier to make its purpose clear
- New Features
- Added convenience methods for creating MdcContexts without having an MdcKeySupplier.
- MdcContext can now be updated
- Runnables can now directly be decorated via
MdcTaskDecorator
to retain MDC information even when not using Spring.
- Fixes
- Do not create ObjectMapper every time an MdcContext is created.
- Do not overwrite MDC information in threads that already have a context in MdcTaskDecorator - a WARNing is logged instead because this indicates incorrect usage
Proper serialization for further JSR310 types
Now properly serializes
- Instant (new)
- LocalDate (new)
- LocalDateTime
- OffsetDateTime
- OffsetTime (new)
- Period (new)
- ZonedDateTime (new)