Skip to content

Commit

Permalink
update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Feb 14, 2025
1 parent f68d665 commit 11b5bf8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- [v8.2.0](#v820)
- [v8.1.1](#v811)
- [v8.1.0](#v810)
- [v8.0.0](#v800)
Expand Down Expand Up @@ -83,6 +84,27 @@
- [v1.1.0](#v110)
- [v1.0.0](#v100)

## v8.2.0

- Added `DeferredFormatCodec` and `DirectFormatCodec` for easier logging of user-defined types and smoother migration
from pre-`v4` versions. Previously, users had to define a custom `Codec` for every non-trivially copyable user-defined
type they wanted to log.
- `DeferredFormatCodec` now supports both trivially and non-trivially copyable types:
- For trivially copyable types, it behaves the same as `TriviallyCopyableTypeCodec`.
- For non-trivially copyable types, it works similarly to pre-`v4` by taking a copy of the object using the copy
constructor and placement new.
- `DirectFormatCodec` formats the object immediately in the hot path, serving as a shortcut to explicitly formatting
the object when logging.
- For advanced use cases, a custom `Codec` can still be defined for finer control over encoding/decoding.

See:
- [DeferredFormatCodec Usage](https://github.com/odygrd/quill/blob/master/examples/user_defined_types_logging_deferred_format.cpp)
- [DirectFormatCodec Usage](https://github.com/odygrd/quill/blob/master/examples/user_defined_types_logging_direct_format.cpp)
- [Documentation](https://quillcpp.readthedocs.io/en/latest/cheat_sheet.html#logging-user-defined-types)

- Marked `TriviallyCopyableTypeCodec` as deprecated. `DeferredFormatCodec` should be used instead, requiring no code
changes.

## v8.1.1

- Updated bazel `rules_cc` to `0.1.1` ([#664](https://github.com/odygrd/quill/issues/664))
Expand Down

0 comments on commit 11b5bf8

Please sign in to comment.