log4net “it is being used by another process” problem


If you use log4net for logging, and try to download log file from ftp, sometimes “file is being used” problem occurs. There is a configuration for minimal locking the log file.

  • <log4net>
    • <appender…
      • <lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
    • </appender>
  • </log4net>

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s