Skip to content

Commit 72fdee8

Browse files
committed
fixed MDC und NDC names from #196
1 parent f320793 commit 72fdee8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/log4net/Filter/MdcFilter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
namespace log4net.Filter;
2121

2222
/// <summary>
23-
/// Simple filter to match a keyed string in the <see cref="Mdc"/>
23+
/// Simple filter to match a keyed string in the <see cref="MDC"/>
2424
/// </summary>
2525
/// <remarks>
2626
/// <para>
27-
/// Simple filter to match a keyed string in the <see cref="Mdc"/>
27+
/// Simple filter to match a keyed string in the <see cref="MDC"/>
2828
/// </para>
2929
/// <para>
3030
/// As the MDC has been replaced with layered properties the

src/log4net/Filter/NdcFilter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
namespace log4net.Filter;
2121

2222
/// <summary>
23-
/// Simple filter to match a string in the <see cref="Ndc"/>
23+
/// Simple filter to match a string in the <see cref="NDC"/>
2424
/// </summary>
2525
/// <remarks>
2626
/// <para>
27-
/// Simple filter to match a string in the <see cref="Ndc"/>
27+
/// Simple filter to match a string in the <see cref="NDC"/>
2828
/// </para>
2929
/// <para>
3030
/// As the NDC has been replaced with named stacks stored in the

src/log4net/MDC.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace log4net;
3030
/// </para>
3131
/// </note>
3232
/// <para>
33-
/// The MDC class is similar to the <see cref="Ndc"/> class except that it is
33+
/// The MDC class is similar to the <see cref="NDC"/> class except that it is
3434
/// based on a map instead of a stack. It provides <i>mapped
3535
/// diagnostic contexts</i>. A <i>Mapped Diagnostic Context</i>, or
3636
/// MDC in short, is an instrument for distinguishing interleaved log
@@ -45,7 +45,7 @@ namespace log4net;
4545
/// <author>Nicko Cadell</author>
4646
/// <author>Gert Driesen</author>
4747
/*[Obsolete("MDC has been replaced by ThreadContext.Properties")]*/
48-
public static class Mdc
48+
public static class MDC
4949
{
5050
/// <summary>
5151
/// Gets the context value identified by the <paramref name="key" /> parameter.

src/log4net/NDC.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace log4net;
5151
/// </remarks>
5252
/// <example>How to push a message into the context
5353
/// <code lang="C#">
54-
/// using(NDC.Push("my context message"))
54+
/// using (NDC.Push("my context message"))
5555
/// {
5656
/// ... all log calls will have 'my context message' included ...
5757
///
@@ -62,7 +62,7 @@ namespace log4net;
6262
/// <author>Nicko Cadell</author>
6363
/// <author>Gert Driesen</author>
6464
/*[Obsolete("NDC has been replaced by ThreadContext.Stacks")]*/
65-
public static class Ndc
65+
public static class NDC
6666
{
6767
/// <summary>
6868
/// Gets the current context depth.

src/log4net/Util/ThreadContextStack.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public IDisposable Push(string? message)
178178
/// <remarks>
179179
/// <para>
180180
/// This property is provided only to support backward compatibility
181-
/// of the <see cref="Ndc"/>. Typically the internal stack should not
181+
/// of the <see cref="NDC"/>. Typically the internal stack should not
182182
/// be modified.
183183
/// </para>
184184
/// </remarks>

0 commit comments

Comments
 (0)