Class ValueObjectLoggingOptions
Namespace: AdCodicem.ValueObjects.Serilog
Assembly: AdCodicem.ValueObjects.Serilog.dll
Options of
public sealed class ValueObjectLoggingOptions
Inheritance
object ← ValueObjectLoggingOptions
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Assemblies
Gets the assemblies whose value objects are registered before the logger is built.
public ICollection<Assembly> Assemblies { get; }
Property Value
Remarks
Under the JIT, the registration the generator emits for an assembly runs once its code is first used, which a
logger configured at the top of Program.cs comes before: name the assemblies declaring value objects there.
A native binary has registered all of them at start-up.
CaptureAsUnderlyingValue
Gets or sets a value indicating whether a value object logged without @ is captured as its underlying value
too. Off by default.
public bool CaptureAsUnderlyingValue { get; set; }
Property Value
Remarks
It costs one pass over the properties of every event, and a numeric value object then reaches a filter, a query and a format in the message template as the number it holds.