Does the user running this process have access to write to c:\temp? On Fri, Apr 8, 2011 at 1:47 AM, Patrik Nylund <patrik.nyl...@tke.fi> wrote:
> HI, why do I not get a logfile? > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > <!-- Register a section handler for the log4net section --> > <configSections> > <section name="log4net" type="System.Configuration.IgnoreSectionHandler" /> > </configSections> > <appSettings> > <!-- To enable internal log4net logging specify the following appSettings > key --> > <!-- <add key="log4net.Internal.Debug" value="true"/> --> > </appSettings> > <!-- This section contains the log4net configuration settings --> > <log4net> > <!-- Define some output appenders --> > <appender name="RollingLogFileAppender" > type="log4net.Appender.RollingFileAppender"> > <file value="c:\temp\rolling-log.txt" /> > <appendToFile value="true" /> > <maxSizeRollBackups value="10" /> > <maximumFileSize value="100" /> > <rollingStyle value="Size" /> > <staticLogFileName value="true" /> > <layout type="log4net.Layout.PatternLayout"> > <header value="[Header] " /> > <footer value="[Footer] " /> > <conversionPattern value="%date [%thread] %-5level %logger [%ndc] - > %message%newline" /> > </layout> > </appender> > </log4net> > </configuration> >