Interface ILogEventPropertyValueFactory
Supports the policy-driven construction of LogEventPropertyValues given regular .NET objects.
public interface ILogEventPropertyValueFactory
Methods
CreatePropertyValue(object?, bool)
Create a LogEventPropertyValue given a .NET object and destructuring strategy.
LogEventPropertyValue CreatePropertyValue(object? value, bool destructureObjects = false)
Parameters
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
- LogEventPropertyValue
The value.