-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It's a good idea to store a hash of the message template, so one can easily search for similar events.
(By the way, Seq also does this.)
One computes the hash using one of these algorithms:
- The "Jenkins one-at-a-time" algorithm, implemented in both Serilog.Formatting.Compact and Serilog.Expressions. It is very simple, and could even be copy-pasted to avoid a dependency on those libraries. Recommended.
- The "Murmur3" algorithm, documented here and here, and implemented in this library.
Then the hash must be persisted:
- An new enricher (e.g.
EventIdEnricher) can add it as a property to the log event, which would be serialised to the "Properties" JSON object - And/Or it can be added as a table column (so it can be indexed); this would be done by a new column writer (e.g.
EventIdColumnWriter)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request