Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
NLog
MDC
Get
NLog.MDC.Get C# (CSharp) Method
MDC Class Documentation
Show file
Open project: NLog/NLog
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); }
MDC
Clear
Contains
Get
GetObject
Remove
Set