Rotate Logs
Brought to you by:
djmoby
After logfile reaches size of 10 MB, it will be deletet and started with empty log. If possible implement "Rotation Logs". Rename fswatcher.log to fswatcher.1.log, fswatcher.1.log to fswatcher.2.log and so on. XML configuration should have values for max size of logfile and how many rotatelogs will be kept.
The log file is newer deleted. It's just moved with different unique name (LogFileName + Guid + Extension).
There is a bug (4.2.0.0) that ignores the directory when rotating the log file. That means that by default File Watcher Windows Service moves log files out of the installation directory.
You can delete log files that you don't need with a file watcher. Batch file will do the job. At the moment 10 MB log rotation seems to be good enough.