Title: Message
Jason your config file looks fine. Most of my experience is ASP.NET apps. However in all of my RollingFileAppenders I have to put a fully qualified path in the value of the file tag. I am not sure if this is something that is only needed in asp.net apps but the Log4Net "Documentation" left that out and that held me up for a bit and I saw the same thing happen as you are seeing now. Who knows. This framework can really be a pain. 
 
B
 
 
-----Original Message-----
From: Wang, Jason @ Newport MacArthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 3:53 PM
To: 'Log4NET User'
Subject: RE: Windows Service

Brette,

            What about Windows Service using the rolling file appender?  If the .exe I registered as a Windows Service is stored in C:\MyService, technically, the log file should be created in there as well right?  What stumps me is that Filemon from Sysinternals did not detect any permission denied tries that may indicate some sorts of a user/file permission cause.

Thanks,

Jason

           


From: Esterbrooks, Brette [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 12:30 PM
To: Log4NET User
Subject: RE: Windows Service

 

I have run into this problem when trying to log to event log. It ended up being that the user that was running log4net did not have access to log to the event log. Have you tried taking out the event log appender and seeing if the file appender is working?

 

Brette

-----Original Message-----
From: Wang, Jason @ Newport MacArthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 12, 2005 2:23 PM
To: '[email protected]'
Subject: Windows Service

I'm having trouble getting log4net working in my Windows Service application.  Root is setup to use both event log appender and rolling log file appender but nothing is logged  (No exception thrown either).  What is the best way to troubleshoot?

 

Thanks,

 

Jason

Reply via email to