Table of Contents

Interface ILogEventPropertyFactory

Namespace
Serilog.Core
Assembly
Serilog.dll

Creates log event properties from regular .NET objects, applying policies as required.

public interface ILogEventPropertyFactory

Methods

CreateProperty(string, object?, bool)

Construct a LogEventProperty with the specified name and value.

LogEventProperty CreateProperty(string name, object? value, bool destructureObjects = false)

Parameters

name string

The name of the property.

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

LogEventProperty

Created LogEventProperty instance.