mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
c764fbe573
* contextualized-logging: Automatically convert logging values to strings. For now, this has almost the same behavior, but it allows us to customize the output in the future. The main change is that the log format has gone from: context: {a=b, x=1, foo=bar} to: context: {a: "b", x: "1", foo: "bar"} * contextualized-logging: Move `writeTo` inside `LoggingValue`. * contextualized-logging: Allow for more than just strings. `null`, numbers, and sequences are now correctly logged. The log format has gone from: context: {a: "b", x: "1", foo: "bar", parties: "[alice, bob]"} to: context: {a: "b", x: 1, foo: "bar", parties: ["alice", "bob"]} CHANGELOG_BEGIN - The log output of Daml components has changed so that the structured part is closer to JSON. This allows us to distinguish and parse numbers and lists. If you are parsing this log output, you may need to change your parser. The log output has changed from: .. code-block:: context: {a=b, x=1, foo=bar, parties=[alice, bob]} to: .. code-block:: context: {a: "b", x: 1, foo: "bar", parties: ["alice", "bob"]} CHANGELOG_END * contextualized-logging: Extract the string serializer. * Use non-string logging where possible. * contextualized-logging: Split logging values from serialization. So that callers don't have to know about Jackson. * contextualized-logging: `SeqView` is `Iterable`. Don't need both. * contextualized-logging: Make `ToStringToLoggingValue` a `val`. Co-Authored-By: Stephen Compall <stephen.compall@daml.com> * contextualized-logging: Add a transient dependency for 2.12 only. This required more infrastructure than I thought it would. * kvutils: Make it explicit that we're logging the hashes of archives. The implicit was found to be a little confusing. Co-authored-by: Stephen Compall <stephen.compall@daml.com> |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel |