Skip to content

Commit

Permalink
fixed MDC und NDC names from #196
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeAndNil committed Oct 24, 2024
1 parent f320793 commit 72fdee8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/log4net/Filter/MdcFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
namespace log4net.Filter;

/// <summary>
/// Simple filter to match a keyed string in the <see cref="Mdc"/>
/// Simple filter to match a keyed string in the <see cref="MDC"/>
/// </summary>
/// <remarks>
/// <para>
/// Simple filter to match a keyed string in the <see cref="Mdc"/>
/// Simple filter to match a keyed string in the <see cref="MDC"/>
/// </para>
/// <para>
/// As the MDC has been replaced with layered properties the
Expand Down
4 changes: 2 additions & 2 deletions src/log4net/Filter/NdcFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
namespace log4net.Filter;

/// <summary>
/// Simple filter to match a string in the <see cref="Ndc"/>
/// Simple filter to match a string in the <see cref="NDC"/>
/// </summary>
/// <remarks>
/// <para>
/// Simple filter to match a string in the <see cref="Ndc"/>
/// Simple filter to match a string in the <see cref="NDC"/>
/// </para>
/// <para>
/// As the NDC has been replaced with named stacks stored in the
Expand Down
4 changes: 2 additions & 2 deletions src/log4net/MDC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace log4net;
/// </para>
/// </note>
/// <para>
/// The MDC class is similar to the <see cref="Ndc"/> class except that it is
/// The MDC class is similar to the <see cref="NDC"/> class except that it is
/// based on a map instead of a stack. It provides <i>mapped
/// diagnostic contexts</i>. A <i>Mapped Diagnostic Context</i>, or
/// MDC in short, is an instrument for distinguishing interleaved log
Expand All @@ -45,7 +45,7 @@ namespace log4net;
/// <author>Nicko Cadell</author>
/// <author>Gert Driesen</author>
/*[Obsolete("MDC has been replaced by ThreadContext.Properties")]*/
public static class Mdc
public static class MDC
{
/// <summary>
/// Gets the context value identified by the <paramref name="key" /> parameter.
Expand Down
4 changes: 2 additions & 2 deletions src/log4net/NDC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace log4net;
/// </remarks>
/// <example>How to push a message into the context
/// <code lang="C#">
/// using(NDC.Push("my context message"))
/// using (NDC.Push("my context message"))
/// {
/// ... all log calls will have 'my context message' included ...
///
Expand All @@ -62,7 +62,7 @@ namespace log4net;
/// <author>Nicko Cadell</author>
/// <author>Gert Driesen</author>
/*[Obsolete("NDC has been replaced by ThreadContext.Stacks")]*/
public static class Ndc
public static class NDC
{
/// <summary>
/// Gets the current context depth.
Expand Down
2 changes: 1 addition & 1 deletion src/log4net/Util/ThreadContextStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public IDisposable Push(string? message)
/// <remarks>
/// <para>
/// This property is provided only to support backward compatibility
/// of the <see cref="Ndc"/>. Typically the internal stack should not
/// of the <see cref="NDC"/>. Typically the internal stack should not
/// be modified.
/// </para>
/// </remarks>
Expand Down

0 comments on commit 72fdee8

Please sign in to comment.