You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2004/11/24 16:48:18 UTC

cvs commit: logging-log4net/src/Core LoggingEvent.cs

nicko       2004/11/24 07:48:18

  Modified:    src      LogicalThreadContext.cs MDC.cs ThreadContext.cs
               src/Core LoggingEvent.cs
  Log:
  Updated doc comments
  
  Revision  Changes    Path
  1.3       +3 -3      logging-log4net/src/LogicalThreadContext.cs
  
  Index: LogicalThreadContext.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/LogicalThreadContext.cs,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogicalThreadContext.cs	22 Nov 2004 02:09:06 -0000	1.2
  +++ LogicalThreadContext.cs	24 Nov 2004 15:48:18 -0000	1.3
  @@ -53,14 +53,14 @@
   	/// </para>
   	/// </remarks>
   	/// <example>Example of using the thread context properties to store a username.
  -	/// <code>
  +	/// <code lang="C#">
   	/// LogicalThreadContext.Properties["user"] = userName;
   	///	log.Info("This log message has a LogicalThreadContext Property called 'user'");
   	/// </code>
   	/// </example>
   	/// <example>Example of how to push a message into the context stack
  -	/// <code>
  -	///	using(LogicalThreadContext.Stack.Push("my context message"))
  +	/// <code lang="C#">
  +	///	using(LogicalThreadContext.Stacks["LDC"].Push("my context message"))
   	///	{
   	///		log.Info("This log message has a LogicalThreadContext Stack message that includes 'my context message'");
   	///	
  
  
  
  1.6       +1 -1      logging-log4net/src/MDC.cs
  
  Index: MDC.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/MDC.cs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MDC.cs	22 Nov 2004 02:09:06 -0000	1.5
  +++ MDC.cs	24 Nov 2004 15:48:18 -0000	1.6
  @@ -27,7 +27,7 @@
   	/// <remarks>
   	/// <para>
   	/// The MDC is deprecated and has been replaced by the <see cref="ThreadContext.Properties"/>.
  -	/// The current MDC implementation forwards to the ThreadContext.Properties.
  +	/// The current MDC implementation forwards to the <c>ThreadContext.Properties</c>.
   	/// </para>
   	/// <para>
   	/// The MDC class is similar to the <see cref="NDC"/> class except that it is
  
  
  
  1.4       +3 -3      logging-log4net/src/ThreadContext.cs
  
  Index: ThreadContext.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/ThreadContext.cs,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ThreadContext.cs	22 Nov 2004 02:09:06 -0000	1.3
  +++ ThreadContext.cs	24 Nov 2004 15:48:18 -0000	1.4
  @@ -50,14 +50,14 @@
   	/// </para>
   	/// </remarks>
   	/// <example>Example of using the thread context properties to store a username.
  -	/// <code>
  +	/// <code lang="C#">
   	/// ThreadContext.Properties["user"] = userName;
   	///	log.Info("This log message has a ThreadContext Property called 'user'");
   	/// </code>
   	/// </example>
   	/// <example>Example of how to push a message into the context stack
  -	/// <code>
  -	///	using(ThreadContext.Stack.Push("my context message"))
  +	/// <code lang="C#">
  +	///	using(ThreadContext.Stacks["NDC"].Push("my context message"))
   	///	{
   	///		log.Info("This log message has a ThreadContext Stack message that includes 'my context message'");
   	///	
  
  
  
  1.14      +1 -1      logging-log4net/src/Core/LoggingEvent.cs
  
  Index: LoggingEvent.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Core/LoggingEvent.cs,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- LoggingEvent.cs	12 Nov 2004 22:31:25 -0000	1.13
  +++ LoggingEvent.cs	24 Nov 2004 15:48:18 -0000	1.14
  @@ -467,7 +467,7 @@
   //			{
   //				if (m_data.Ndc == null) 
   //				{
  -//					m_data.Ndc = ThreadContext.Stack.GetFullMessage();
  +//					m_data.Ndc = ThreadContext.Stacks["NDC"].GetFullMessage();
   //					if (m_data.Ndc == null)
   //					{
   //						m_data.Ndc = "";