C# Class Serilog.Events.LogEventProperty

A property associated with a LogEvent.
Datei anzeigen Open project: serilog/serilog Class Usage Examples

Public Methods

Method Description
IsValidName ( string name ) : bool

Test name to determine if it is a valid property name.

LogEventProperty ( string name, LogEventPropertyValue value ) : System

Construct a LogEventProperty with the specified name and value.

Method Details

IsValidName() public static method

Test name to determine if it is a valid property name.
public static IsValidName ( string name ) : bool
name string The name to check.
return bool

LogEventProperty() public method

Construct a LogEventProperty with the specified name and value.
public LogEventProperty ( string name, LogEventPropertyValue value ) : System
name string The name of the property.
value LogEventPropertyValue The value of the property.
return System