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
valueobjectThe value to destructure.
propertyValueFactoryILogEventPropertyValueFactoryRecursively apply policies to destructure additional values.
resultLogEventPropertyValueThe destructured value, or null.
Returns
- bool
True if the value could be destructured under this policy.