Building Microservices with .NET Core
by Soumya Mukherjee, Gaurav Aroraa, Lalit Kale, Manish Kanwar
Semantic logging
Event Tracing for Windows (ETW) is a structural logging mechanism where you can store a structured payload with the log entry. This information is generated by event listeners and may include typed metadata about the event. This is nothing but an example of semantic logging. Semantic logging strives for passing additional data along with the log entry so that the processing system can get the context structured around the event. Hence, semantic logging is also referred to as structured logging or typed logging.
As an example, an event that indicates an order was placed can generate a log entry that contains the number of items as an integer value, the total value as a decimal number, the customer identifier as a long value, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access