nicko 2004/05/30 04:07:32
Modified: src/Core LoggingEvent.cs
Log:
Renamed GetExceptionStrRep to GetExceptionString
Revision Changes Path
1.5 +17 -1 logging-log4net/src/Core/LoggingEvent.cs
Index: LoggingEvent.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Core/LoggingEvent.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- LoggingEvent.cs 16 May 2004 21:28:43 -0000 1.4
+++ LoggingEvent.cs 30 May 2004 11:07:32 -0000 1.5
@@ -902,11 +902,27 @@
/// Returns this event's exception's rendered using the
/// <see cref="ILoggerRepository.RendererMap" />.
/// </summary>
+ /// <remarks>
+ /// <b>Obsolete. Use <see cref="GetExceptionString"/>
instead.</b>
+ /// </remarks>
/// <returns>
/// This event's exception's rendered using the <see
cref="ILoggerRepository.RendererMap" />.
/// </returns>
+ [Obsolete("Use GetExceptionString instead")]
public string GetExceptionStrRep()
{
+ return GetExceptionString();
+ }
+
+ /// <summary>
+ /// Returns this event's exception's rendered using the
+ /// <see cref="ILoggerRepository.RendererMap" />.
+ /// </summary>
+ /// <returns>
+ /// This event's exception's rendered using the <see
cref="ILoggerRepository.RendererMap" />.
+ /// </returns>
+ public string GetExceptionString()
+ {
if (m_data.ExceptionString == null)
{
if (m_thrownException != null)
@@ -1087,7 +1103,7 @@
if ((updateFlags & FixFlags.Exception) != 0)
{
// Force the exception text to be loaded
- string tmp = GetExceptionStrRep();
+ string tmp = GetExceptionString();
m_fixFlags |= FixFlags.Exception;
}