I am using Log4net RollingFileAppender to log messages in a local file
and roll the file based on Size and time.

Scenario:

There can be multiple instance of my application running on windows.
All instances log the message using log4net rollingFileAppender into
same file (may be at same time). But when they try doing this, I got the
following error:

log4net:ERROR [LoggerRollingFileAppender] Unable to acquire lock on
file E:\Novell\ZENworks\log\LocalStore\zmd-messages.log. The process
cannot access the file
'E:\Novell\ZENworks\log\LocalStore\zmd-messages.log' because it is being
used by another process.

Please let me know how to solve this issue.

Thanks
Shaily








Reply via email to