Serilog.Events.MessageTemplate
Represents a message template passed to a log method. The template
can subsequently render the template in textual form given the list
of properties.
Represents the empty message template.
The raw text describing the template.
The tokens parsed from the template.
Construct a message template using manually-defined text and property tokens.
Construct a message template using manually-defined text and property tokens.
public string Render(IReadOnlyDictionary<string, LogEventPropertyValue> properties, IFormatProvider formatProvider = null)
Convert the message template into a textual message, given the
properties matching the tokens in the message template.
public void Render(IReadOnlyDictionary<string, LogEventPropertyValue> properties, TextWriter output, IFormatProvider formatProvider = null)
Convert the message template into a textual message, given the
properties matching the tokens in the message template.