Clearing a log file?

Topics: Logging Application Block
Sep 5, 2008 at 11:48 PM

I have successfully implemented basic logging in a WAS hosted WCF service. My question is, how do I clear out the log file when the service starts up? I'd like to start with a clean slate each time.

I've tried to simply delete the file in my constructor but the service already has it open for reading.

Any suggestions?