Hi,
within our windows application there is a debug logging mode which generates quite a lot of log output.
If this mode is active it would be nice to occasionally truncate or delete the log file(s) without stopping and restarting application.
This would be very helpful when "debugging" the application on systems of the application user (without development environment).
Would it be possible to implement a configuration key like "non-exclusive" for the file logger, as the FileShareMode is currently hard coded as FileShare.Read without sharing write and delete operations.
For compatibility reason this option could be defaulting to the current behavior, of course.