Méthode | Description | |
---|---|---|
AddOrUpdateProperty ( |
Add a property to the event if not already present, otherwise, update its value.
|
|
AddPropertyIfAbsent ( |
Add a property to the event if not already present.
|
|
LogEvent ( DateTimeOffset timestamp, LogEventLevel level, |
Construct a new LogEvent.
|
|
RemovePropertyIfPresent ( string propertyName ) : void |
Remove a property from the event, if present. Otherwise no action is performed.
|
|
RenderMessage ( IFormatProvider formatProvider = null ) : string |
Render the message template given the properties associated with the event, and return the result.
|
|
RenderMessage ( |
Render the message template to the specified output, given the properties associated with the event.
|
public AddOrUpdateProperty ( |
||
property | The property to add or update. | |
Résultat | void |
public AddPropertyIfAbsent ( |
||
property | The property to add. | |
Résultat | void |
public LogEvent ( DateTimeOffset timestamp, LogEventLevel level, |
||
timestamp | DateTimeOffset | The time at which the event occurred. |
level | LogEventLevel | The level of the event. |
exception | An exception associated with the event, or null. | |
messageTemplate | Serilog.Events.MessageTemplate | The message template describing the event. |
properties | IEnumerable |
Properties associated with the event, including those presented in |
Résultat | System |
public RemovePropertyIfPresent ( string propertyName ) : void | ||
propertyName | string | The name of the property to remove. |
Résultat | void |
public RenderMessage ( IFormatProvider formatProvider = null ) : string | ||
formatProvider | IFormatProvider | Supplies culture-specific formatting information, or null. |
Résultat | string |
public RenderMessage ( |
||
output | The output. | |
formatProvider | IFormatProvider | Supplies culture-specific formatting information, or null. |
Résultat | void |