You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Eric Fetzer <el...@yahoo.com> on 2005/09/13 17:58:24 UTC

log4net and IIS Application Pool

Hi all!  Sorry if this has been discussed before, I'm
new to this user group and don't know how to search as
of yet.

We are using log4net for logging (go figure) and have
a problem every other day.  We've narrowed the problem
down to when the worker processes are recycled.  Every
other day logging works.  Logging starts working on a
recycle, and then 24 hours later when we recycle again
stops working.  We've tried setting the worker
processes to recycle a second time 15 minutes after
the first recycle as a workaround, but that doesn't
seem to do the trick.  Any ideas?

Thanks,
Eric


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Re: log4net and IIS Application Pool

Posted by Eric Fetzer <el...@yahoo.com>.
Here is the appender we're using:

		<appender name="RollingFileAppender"
type="log4net.Appender.RollingFileAppender">
			<file value="ErrorLogs\\MyErrorLog.log" />
			<appendToFile value="true" />
			<rollingStyle value="Composite" />
			<maxSizeRollBackups value="30" />
			<maximumFileSize value="1000KB" />
			<staticLogFileName value="true" />
			<threshold value="info" />
			<layout type="log4net.Layout.PatternLayout">
				<conversionPattern value="%d [%t] %-5p %c [%x]
%n%m%n%n" />
			</layout>
		</appender>

--- Matthew Brown <oc...@gmail.com> wrote:

> Eric,
> 
> How are you configuring the logger(s)?
> 
> On 9/13/05, Eric Fetzer <el...@yahoo.com>
> wrote:
> > 
> > Hi all! Sorry if this has been discussed before,
> I'm
> > new to this user group and don't know how to
> search as
> > of yet.
> > 
> > We are using log4net for logging (go figure) and
> have
> > a problem every other day. We've narrowed the
> problem
> > down to when the worker processes are recycled.
> Every
> > other day logging works. Logging starts working on
> a
> > recycle, and then 24 hours later when we recycle
> again
> > stops working. We've tried setting the worker
> > processes to recycle a second time 15 minutes
> after
> > the first recycle as a workaround, but that
> doesn't
> > seem to do the trick. Any ideas?
> > 
> > Thanks,
> > Eric
> > 
> > 
> > 
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> >
> 



	
		
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


Re: log4net and IIS Application Pool

Posted by Matthew Brown <oc...@gmail.com>.
Eric,

How are you configuring the logger(s)?

On 9/13/05, Eric Fetzer <el...@yahoo.com> wrote:
> 
> Hi all! Sorry if this has been discussed before, I'm
> new to this user group and don't know how to search as
> of yet.
> 
> We are using log4net for logging (go figure) and have
> a problem every other day. We've narrowed the problem
> down to when the worker processes are recycled. Every
> other day logging works. Logging starts working on a
> recycle, and then 24 hours later when we recycle again
> stops working. We've tried setting the worker
> processes to recycle a second time 15 minutes after
> the first recycle as a workaround, but that doesn't
> seem to do the trick. Any ideas?
> 
> Thanks,
> Eric
> 
> 
> 
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>