Getting log4net to flush with each Log?

A

Artie

Hi,

Does anyone know a workaround to get log4net to flush with every log?

I know that l4n version 1.2.10 as the .flush method, but we're stuck
on an older version.

Currently, if our process is killed (or there's a power cut etc) our
buffered log events are lost.

Any help much appreciated.

Cheers

Artie
 
J

Jon Skeet [C# MVP]

Does anyone know a workaround to get log4net to flush with every log?

I know that l4n version 1.2.10 as the .flush method, but we're stuck
on an older version.

Currently, if our process is killed (or there's a power cut etc) our
buffered log events are lost.

Does your appender have a property such as "ImmediateFlush" on the
TextWriterAppender?

Jon
 
A

Artie

Does your appender have a property such as "ImmediateFlush" on the
TextWriterAppender?

Jon

Hi Jon,

We're on l4n 1.2.8 - it doesn't have ImmediateFlush.

Artie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top