Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 2.02 KB

Sagara.Core.Logging.Serilog.UtcTimestampEnricher.md

File metadata and controls

41 lines (25 loc) · 2.02 KB

UtcTimestampEnricher Class

Serilog enricher that converts the log event's timestamp to UTC.

public class UtcTimestampEnricher :
Serilog.Core.ILogEventEnricher

Inheritance System.Object 🡒 UtcTimestampEnricher

Implements Serilog.Core.ILogEventEnricher

Methods

UtcTimestampEnricher.Enrich(LogEvent, ILogEventPropertyFactory) Method

Enrich the log event with a UTC timestamp.

public void Enrich(Serilog.Events.LogEvent logEvent, Serilog.Core.ILogEventPropertyFactory propertyFactory);

Parameters

logEvent Serilog.Events.LogEvent

The log event to enrich.

propertyFactory Serilog.Core.ILogEventPropertyFactory

Factory for creating new properties to add to the event.

Implements Enrich(LogEvent, ILogEventPropertyFactory)