I was trying to add the date to my log file name and I was able to make it work by following the few suggestions I\'ve found in stackoverflow. Everything works fine but for some
I run into the same problem. For me, it was a combination of using RollingFileAppender for my test logs, and running my NUnit tests with ReSharper.
It turns out that ReSharper uses two processes to run the tests:
which creates a race condition on the log file.
Now, if we change the log file name to include the process id:
the problem is solved. Each file gets its own, unique name:
MyLog.pid.5440_2010-10-13.log
MyLog.pid.1496_2010-10-13.log
Note the use of PatternString for 'type'.
Hope that helps.