logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devin Smith" <devinsm...@gmail.com>
Subject Re: newbie question about configuration
Date Sat, 25 Mar 2006 08:52:04 GMT
On 3/24/06, Ken Chu <ken_c_chu@yahoo.com> wrote:
> Hi .Net developers,
> I've been trying to get the log4net 1.2.9 beta's WebApp example to work under
> ASP.NET 2.0 without any luck (using C# in VS2005).  I don't get any log files
> nor trace output when I go to http://myhost/WebAppCS/Trace.axd.  Here are the
> things I've tried to do:
> - make sure the directory for the log file is writable
> - setting the output log file with absolute path (c:\tmp\webapp-log.txt)
> - change '\' to '\\' in the WebApp.dll.log4net file
> - copy the content of WebApp.dll.log4net into Web.config
> - turn on log4net internal debug flag (where does this output to?)
> Could someone tell me what I'm missing?  Why isn't the WebForm1.asp page
> producing a log file or trace output?  Is this because I converted this .NET
> 1.0 project to .NET 2.0?

Hi Ken,

You didn't tell us which user you gave write access to.
Make sure that the directory you are writing your log files to has
write access by both ASP.NET user and the NETWORK SERVICE user. I
always forget which user w3wp runs under but this user needs the write



View raw message