Interface ILogEventPropertyFactory
Creates log event properties from regular .NET objects, applying policies as required.
public interface ILogEventPropertyFactory
Methods
CreateProperty(string, object?, bool)
Construct a LogEventProperty with the specified name and value.
LogEventProperty CreateProperty(string name, object? value, bool destructureObjects = false)
Parameters
name
stringThe name of the property.
value
objectThe value of the property.
destructureObjects
boolIf true, and the value is a non-primitive, non-array type, then the value will be converted to a structure; otherwise, unknown types will be converted to scalars, which are generally stored as strings.
Returns
- LogEventProperty
Created LogEventProperty instance.