<PackageReference Include="Serilog" Version="4.4.0-dev-02438" />

Serilog.Context.LogContext

public static class LogContext
Holds ambient properties that can be attached to log events. To configure, use the FromLogContext method.
namespace Serilog.Context { public static class LogContext { public static IDisposable PushProperty(string name, object value, bool destructureObjects = false); public static IDisposable Push(ILogEventEnricher enricher); public static IDisposable Push(params ILogEventEnricher[] enrichers); public static IDisposable Push(ReadOnlySpan<ILogEventEnricher> enrichers); public static IDisposable Push(IEnumerable<ILogEventEnricher> enrichers); public static ILogEventEnricher Clone(); public static IDisposable Suspend(); public static void Reset(); } }