Serilog.Context.LogContext
Holds ambient properties that can be attached to log events. To
configure, use the FromLogContext method.
Obtain an enricher that represents the current contents of the LogContext. This
can be pushed back onto the context in a different location/thread when required.
Push an enricher onto the context, returning an IDisposable
that must later be used to remove the property, along with any others that
may have been pushed on top of it and not yet popped. The property must
be popped from the same thread/logical call context.
Push multiple enrichers onto the context, returning an IDisposable
that must later be used to remove the property, along with any others that
may have been pushed on top of it and not yet popped. The property must
be popped from the same thread/logical call context.
Push multiple enrichers onto the context, returning an IDisposable
that must later be used to remove the property, along with any others that
may have been pushed on top of it and not yet popped. The property must
be popped from the same thread/logical call context.
Push multiple enrichers onto the context, returning an IDisposable
that must later be used to remove the property, along with any others that
may have been pushed on top of it and not yet popped. The property must
be popped from the same thread/logical call context.
Push a property onto the context, returning an IDisposable
that must later be used to remove the property, along with any others that
may have been pushed on top of it and not yet popped. The property must
be popped from the same thread/logical call context.
Remove all enrichers from LogContext for the current async scope.
Remove all enrichers from the LogContext, returning an IDisposable
that must later be used to restore enrichers that were on the stack before Suspend was called.