Interface IDestructuringPolicy
Determine how, when destructuring, a supplied value is represented as a complex log event property.
public interface IDestructuringPolicy
Methods
TryDestructure(object, ILogEventPropertyValueFactory, out LogEventPropertyValue?)
If supported, destructure the provided value.
bool TryDestructure(object value, ILogEventPropertyValueFactory propertyValueFactory, out LogEventPropertyValue? result)
Parameters
value
objectThe value to destructure.
propertyValueFactory
ILogEventPropertyValueFactoryRecursively apply policies to destructure additional values.
result
LogEventPropertyValueThe destructured value, or null.
Returns
- bool
True if the value could be destructured under this policy.