Thanks for the response. I did have an extra </appender> tag. Removed that and gave 'Everyone' 'Full Control' access at the root of the hard drive. That should prevent security issues from being the problem.
Still no output. Any other ideas? -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 2:58 PM To: Log4NET User Subject: Re: Can't get logging output Some web servers require that the Network Service account have write access to the directory were log files are stored. What happens when you give Full Permission to the log directory for both the Network Service account and the Asp.Net account? I noticed that your config file had an extra </appender> tag. What happens when you turn on internal debugging? <appSettings> <add key="log4net.Internal.Debug" value="true" /> </appSettings> <system.diagnostics> <trace> <listeners> <add name="textWriterTraceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\\BigWave\\bigwaveprojects.com\\Code\\Web\\log4net.txt" /> </listeners> </trace> </system.diagnostics> --- John Livermore <[EMAIL PROTECTED]> wrote: > I am using log4net 1.2.9.0 (ASP.NET project, assembly type is a DLL) > and am not able to get the logger to produce a log file. > > My AssemblyInfo.cs looks like. > > [assembly: log4net.Config.XmlConfigurator(Watch=true)] > > My configuration is in web.config and is as follows.. > > <configSections> > <section name="log4net" > type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> > </configSections> > <log4net> > <appender name="LogFileAppender" > type="log4net.Appender.FileAppender"> > <param name="File" > value="C:\\BigWave\\bigwaveprojects.com\\Code\\Web\\LogFileAppender.log" > /> > <param name="AppendToFile" value="true" /> > <layout type="log4net.Layout.PatternLayout"> > <param name="ConversionPattern" > value="%d{yyyy/MM/dd|HH:mm:ss.ff}|%t|%-5p|%-20c{2}|%x|%m%n" /> > </layout> > </appender> > </appender> > <root> > <level value="INFO" /> > <appender-ref ref="LogFileAppender" /> > </root> > </log4net> > > The ASPNET account has Modify permissions at > c:\bigwave\bigwaveprojects.com\code\web\. > > And my code looks like. > > private static log4net.ILog log = > log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod() > .DeclaringType); > private void Page_Load(object sender, System.EventArgs e) > { > log.Info("yo"); > } > > > Can someone see what I am missing? > > Thanks! > John >
