NLog.MDC.Get C# (CSharp) Method

Get() public static method

Gets the current thread MDC named item.
If the value isn't a string already, this call locks the LogFactory for reading the LoggingConfiguration.DefaultCultureInfo needed for converting to string.
public static Get ( string item ) : string
item string Item name.
return string
        public static string Get(string item)
        {
            return MappedDiagnosticsContext.Get(item);
        }