Table of Contents

Interface ILogEventPropertyValueFactory

Namespace
Serilog.Core
Assembly
Serilog.dll

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 object

The value of the property.

destructureObjects bool

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

LogEventPropertyValue

The value.