Re: log4net and IIS problems

2008-02-28 Thread Ron Grabowski
_ From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thu 2008-02-28 00:38 To: Log4NET User Subject: Re: log4net and IIS problems Didn't quite finish my thought...I meant to say that we could add an EventLogErrorHandler to catch edge cases like this. To address the unde

Re: log4net and IIS problems

2008-02-28 Thread Ron Grabowski
inheritors and into LockingModelBase. - Original Message From: Morten Andersen <[EMAIL PROTECTED]> To: Log4NET User Sent: Thursday, February 28, 2008 5:07:43 AM Subject: RE: log4net and IIS problems Would it be possible to add some retry mechanism to the appender? If the append

RE: log4net and IIS problems

2008-02-28 Thread Walden H. Leverich
> I meant to say that we could add an EventLogErrorHandler to catch edge cases like this And then retry the logging later I assume? The problem I have with this solution is that I likely want the log entries at the end of the last appdomain, and probably want the ones at the start of the next a

RE: log4net and IIS problems

2008-02-28 Thread Erich Eichinger
From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thu 2008-02-28 00:38 To: Log4NET User Subject: Re: log4net and IIS problems Didn't quite finish my thought...I meant to say that we could add an EventLogErrorHandler to catch edge cases like this. To address the underlying problem, someone

RE: log4net and IIS problems

2008-02-28 Thread Morten Andersen
00:39 Til: Log4NET User Emne: Re: log4net and IIS problems Didn't quite finish my thought...I meant to say that we could add an EventLogErrorHandler to catch edge cases like this. To address the underlying problem, someone posted some code to the control inter-process/AppDomain locking us

Re: log4net and IIS problems

2008-02-27 Thread Ron Grabowski
6:04:19 PM Subject: Re: log4net and IIS problems "Common" was maybe a bad choice of words. If its reproducable - Original Message From: Walden H. Leverich <[EMAIL PROTECTED]> To: Log4NET User Sent: Wednesday, February 27, 2008 4:07:26 PM Subject: RE: log4net and IIS p

Re: log4net and IIS problems

2008-02-27 Thread Ron Grabowski
"Common" was maybe a bad choice of words. If its reproducable - Original Message From: Walden H. Leverich <[EMAIL PROTECTED]> To: Log4NET User Sent: Wednesday, February 27, 2008 4:07:26 PM Subject: RE: log4net and IIS problems > Is this is a common problem?

RE: log4net and IIS problems

2008-02-27 Thread Walden H. Leverich
> Is this is a common problem? Yup. I know I've run into it a few of times. Of course, since log4net will fail silently (a good thing) it may be even more prevalent that I think, after all, how many people will know they're missing log entries? -- Walden H Leverich III Tech Software (516)

Re: log4net and IIS problems

2008-02-27 Thread Ron Grabowski
27, 2008 2:29:17 PM Subject: RE: log4net and IIS problems As AppDomains are completely isolated from each other, it needs some IPC mechanism for this. A common solution on windows is to create a named Mutex or a named Event as named objects are visible across multiple processes on a machin

RE: log4net and IIS problems

2008-02-27 Thread Walden H. Leverich
> Btw: Why not just use the rolling file appender? The rolling file appender is fine, but what do you use for the file name? The common answer would be something date based. However, when the appdomain rollover occurs you'll have two running appdomains that both want to write to 2008-02-27.log

RE: log4net and IIS problems

2008-02-27 Thread Erich Eichinger
Sorry, seems I accidentially duplicated your answer. Btw: Why not just use the rolling file appender? -Erich From: Walden H. Leverich [mailto:[EMAIL PROTECTED] Sent: Wed 2008-02-27 16:30 To: Log4NET User Subject: RE: log4net and IIS problems X

RE: log4net and IIS problems

2008-02-27 Thread Erich Eichinger
Grabowski [mailto:[EMAIL PROTECTED] Sent: Wed 2008-02-27 08:53 To: Log4NET User Subject: Re: log4net and IIS problems I wonder if there's any way for the two AppDomains to be aware of each other... - Original Message From: Morten Andersen <[EMAIL PROTECTED]> To: Log4NET User Se

RE: log4net and IIS problems

2008-02-27 Thread Walden H. Leverich
techsoftinc.com/> Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008 2:53 AM To: Log4NET User Subject: Re: log4net and IIS problems I wonder if there's any way for t

Re: log4net and IIS problems

2008-02-26 Thread Ron Grabowski
I wonder if there's any way for the two AppDomains to be aware of each other... - Original Message From: Morten Andersen <[EMAIL PROTECTED]> To: Log4NET User Sent: Tuesday, February 26, 2008 8:14:10 AM Subject: log4net and IIS problems Hi I am using log4net on my asp.net web pa

RE: log4net and IIS problems

2008-02-26 Thread Morten Andersen
Hi Thank you for your response. I will try to use the shared locking. Morten Fra: Walden H. Leverich [mailto:[EMAIL PROTECTED] Sendt: 26. februar 2008 16:03 Til: Log4NET User Emne: RE: log4net and IIS problems >This seems to work just fine until I do some changes in the source. Si

RE: log4net and IIS problems

2008-02-26 Thread Walden H. Leverich
>This seems to work just fine until I do some changes in the source. Since asp.net runs as a >shadow copy, changes will be compiled on the next request after the change was made. The problem will also show its head on a worker-process restart for the same reason. There are two possible ways a