logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: RollingFileAppender does not log to the file
Date Wed, 01 Dec 2004 22:51:54 GMT

This is usually a permission related issue. The ASP.NET worker process
is running as the ASPNET use (by default) this account needs permission
to create, modify, delete and list files in the directory.

I am still slightly confused by the log4net-debug.txt trace that you
included in your first mail. The ASP.NET process doesn't typically have
a console and the output of the console appender is discarded, just
wondering how you captured the output of the internal log4net debug and
console appender when run from ASP.NET?


> -----Original Message-----
> From: Marco Herrn [mailto:marco.herrn@sourcepark.org] 
> Sent: 30 November 2004 11:03
> To: Log4NET User
> Subject: Re: RollingFileAppender does not log to the file
> Hi Nicko,
> > The debug output looks like everything is working as it should.
> > Can you confirm that the output file
> > "C:\Inetpub\wwwroot\amt\log\AMTLogger.log" is being created, and is 
> > empty.
> I was quite sure about this, but after trying it again, I can 
> say, that the file isn't even created.
> > Also I was wondering where the "2004-11-26 10:33:11,527 [2112]
> > test.Application_Start() - Test aus Application_Start" message cam 
> > from, it looks like it is output through the A_Console appender, 
> > however I don't think that the ASP.NET service should have 
> a Console 
> > attached (unless you are hosting ASP.NET in your own Console App).
> Thats corrects. It comes from a ConsoleAppender. I 
> implemented this only for testing purposes. But that 
> shouldn't be the problem in this case, or am I wrong?
> > What is the configuration file you are using?
> The config file is appended to this mail.
> Regards
> Marco

View raw message