logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Richardson <RDRichard...@rad-con.com>
Subject RE: What does the MemoryAppender's Fix() method do?
Date Mon, 30 Sep 2013 16:01:09 GMT
I am interested because the documentation for the Fix properties and methods is so poor.  I
do not know when I am supposed to use them or what I am supposed to use them for, or what
is used internally and what is designed for public use.

From: Dominik Psenner [mailto:dpsenner@gmail.com]
Sent: Monday, September 30, 2013 10:55 AM
To: 'Log4NET User'
Subject: AW: What does the MemoryAppender's Fix() method do?

Because the FixVolatileData method is now protected and invoked in the setter of the Fix property.

I am wondering why you're so interested in the core internals of log4net? This goes far beyond
a simple question about how to use log4net. :)

Von: Rob Richardson [mailto:RDRichardson@rad-con.com]
Gesendet: Montag, 30. September 2013 16:37
An: Log4NET User
Betreff: RE: What does the MemoryAppender's Fix() method do?

Thank you very much.  I understand now.  But I note that in the link below, it says that FixVolatileData()
is now considered obsolete.  Why is that?

From: Dominik Psenner [mailto:dpsenner@gmail.com]
Sent: Monday, September 30, 2013 10:05 AM
To: 'Log4NET User'
Subject: AW: What does the MemoryAppender's Fix() method do?

Because we are caching the LoggingEvent beyond the lifetime of the Append() method we volatile
data in the logging event must be fixed. Otherwise they would no longer be available for later
use. That is documented further here:

http://logging.apache.org/log4net/release/sdk/log4net.Core.LoggingEvent.FixVolatileData_overload_1.html
Sorry for being incomplete in the first message. :)

Mime
View raw message