Table of Contents

Interface IAddPropertiesToLog

Namespace
Arc4u.Diagnostics
Assembly
Arc4u.Diagnostics.dll

Provides additional properties that the Arc4u logger adds to every log entry (for example the identity of the current user or a correlation id). Implementations are registered as keyed services with the keys "Scoped" and "Transient".

public interface IAddPropertiesToLog

Methods

GetProperties()

Gets the properties to add to the log entry being written.

IDictionary<string, object> GetProperties()

Returns

IDictionary<string, object>

A dictionary of property names and values. Entries with a null value are ignored by the logger.