[
https://issues.apache.org/jira/browse/LOG4NET-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919082#comment-13919082
]
Dominik Psenner edited comment on LOG4NET-255 at 3/4/14 7:24 AM:
-----------------------------------------------------------------
{quote}Even after changing a website to have its own dedicated IIS Application
Pool, I see these log entries being made every 25 seconds or so.{quote}
Re-reading the description this sounds fishy to me. Maybe every 25 seconds or
so the application pool is recycled and for a short time there are two
processes trying to get an exclusive write lock on the same file?
was (Author: nachbarslumpi):
{quote}While I have 3 websites sharing this App Pool, each website logs to its
own \logs\ folder. And I don't have any "web garden" stuff setup (I read in
another thread about problems with >1 Worker Processes).{quote}
According to this description each website uses a pool of worker processes to
process the web requests and thus multiple processes try to get an exclusive
write lock on the same file. This should be solveable either by:
* turning off the worker process pool
* decreasing the worker process pool size to 1
* configure log4net to log into different files for every process
* configure log4net to use a different locking model
> Problem with getting path to appdata with windows service in Windows XP
> -----------------------------------------------------------------------
>
> Key: LOG4NET-255
> URL: https://issues.apache.org/jira/browse/LOG4NET-255
> Project: Log4net
> Issue Type: Bug
> Affects Versions: 1.2.10
> Environment: Windows XP, C# , Windows Service
> Reporter: Martin B.
> Fix For: 1.2 Maintenance Release
>
>
> I've got windows service in C# which using RollingFilleAppender that logs to
> appdata folder. Everything works fine in Vista, W7 or 2008 server, ${APPDATA}
> is correctly replaced by corresponding path to app data folder. But when i
> run my service in Windows XP I get following error through internal
> debugger.
> log4net:ERROR [RollingFileAppender] Unable to acquire lock on file
> \\MyTestApp\LOG\LOG.TXT. Could not find a part of the path '\\MyTestApp\LOG'.
>
> Logger path setting from config file is below:
> <file value="${APPDATA}\\MyTestApp\\LOG\\LOG.TXT"/>
--
This message was sent by Atlassian JIRA
(v6.2#6252)