Interface ILogEventPropertyFactory
Creates log event properties from regular .NET objects, applying policies as required.
public interface ILogEventPropertyFactoryMethods
CreateProperty(string, object?, bool)
Construct a LogEventProperty with the specified name and value.
LogEventProperty CreateProperty(string name, object? value, bool destructureObjects = false)Parameters
- namestring
- The name of the property. 
- valueobject
- The value of the property. 
- destructureObjectsbool
- If 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.