rollingfileappender

Have a Log4Net RollingFileAppender set to roll weekly

The DatePattern string needs to be something that the SimpleDateFormatter will accept. Unfortunately this means that, out of the box, this doesn't include being able to set the boundary to be a week number. There are ways of getting this value in C#, but it's not obvious that we can extend the SimpleDateFormatter or provide a different...

Configuring log4net to Use Isolated Storage in WPF App

I'd like to use log4net's RollingAppender to write to isolated storage, but I can't figure out how to configure log4net to do so. To be clear, I'm trying to do this in an installed WPF application so I don't have some of the issues that some of the Silverlight users have already posted. I thought my best chance was to dynamically set t...

Issues in log4net with dynamic filenaming in RollingFileAppender

I have 3 appenders in my config file for creating 3 different types of logs. I am using dynamic naming of file in each of the 3 appenders by setting the global context properties. In some cases, i need to set the log file name dynamically for just 1 appender. When i set the file name for just 1 appender, it creates another file named "nu...

log4j Appender Being Closed by Caught Exception

Historical Context: This problem ended up being not at all what I thought it was. The cause and solution are below, but the original posting is left for reference. I'm developing a simple framework for periodically polling a directory for .properties files, then performing SQL queries and sending e-mails based on their configurations. B...

Open rolling log file while being written to

Can anyone point me at an application to display/view a rolling log file as it is being written to? I know there are apps out there, but googling just gives me questions about writing to/creating the logs. [This is Windows, not Unix] ...