Skip to main content

ILogWithContextExtensions

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public static class ILogWithContextExtensions

Methods​

PushProperty(ILog, String, Object)​

Pushes a property on the current log context, returning an System.IDisposable to remove the property again from the async context.

View Source​
Declaration
public static IDisposable PushProperty(this ILog logger, string key, object value)
Returns​

System.IDisposable: Interface for popping the property off the stack

Parameters​
TypeNameDescription
ServiceStack.Logging.ILogloggerThe logger

| | System.String | key | Property Name

| | System.Object | value | Property Value

|