If the power goes out during a disk write you going to loose that data as well 
as everything else in the computer's RAM. Deep within FileAppender a FileStream 
is used. How does FileStream deal with power outages? If you're worried about 
the local machine dying you might want to look into appending to a message 
queue or database on another machine instead of writing to a file.

----- Original Message ----
From: loggy1 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, October 5, 2007 7:15:52 PM
Subject: How does log4net prevent file corruption?


What happens if the power goes out during a particularly intensive disk write
operation by log4net?  Does the file become corrupt?  If not, what
techniques does log4net use to prevent this, and can developers apply these
same techniques to their .Net applications in general?

-- 
View this message in context: 
http://www.nabble.com/How-does-log4net-prevent-file-corruption--tf4578109.html#a13068898
Sent from the Log4net - Users mailing list archive at Nabble.com.




Reply via email to