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.Fix
VolatileData_overload_1.html>
http://logging.apache.org/log4net/release/sdk/log4net.Core.LoggingEvent.FixV
olatileData_overload_1.html

Sorry for being incomplete in the first message. :)

 

Von: Dominik Psenner [mailto:[email protected]] 
Gesendet: Montag, 30. September 2013 16:00
An: 'Log4NET User'
Betreff: AW: What does the MemoryAppender's Fix() method do?

 

http://logging.apache.org/log4net/release/sdk/log4net.Core.FixFlags.html

 

I think this is what you're looking for, isn't it?

 

Von: Rob Richardson [mailto:[email protected]] 
Gesendet: Montag, 30. September 2013 15:05
An: Log4NET User
Betreff: What does the MemoryAppender's Fix() method do?

 

The documentation for the MemoryAppender class mentions a Fix method and a
FixFlags property, but there is absolutely no information about what they
actually do.  Could someone please explain them?

 

Thank you.

 

RobR 

Reply via email to