Michael, Do you know which of your appenders you have experiencing this issue with? If you have log4net watching the config file and modify the file then logging configuration will be completely reloaded, which appears to be resolving your issue.
If you enable log4net internal debug do you get any error messages from the appenders when they stop writing? http://logging.apache.org/log4net/release/faq.html#internalDebug Can you repeat the issue with the latest version of log4net? http://logging.apache.org/log4net/downloads.html Cheers, Nicko > -----Original Message----- > From: Richman Michael [mailto:[EMAIL PROTECTED] > Sent: 23 August 2005 17:09 > To: [email protected] > Cc: Richman Michael > Subject: intermittent appender failures > > > > Occasionally, an appender stops appending. This problem > is fixed simply by re-saving the config file with no changes. > > I've experienced this with the SMTP appender and > rolling file appender. > > I am using log4net version 1.2.0.30714. > > Below is my config file. > I am using a console application, MS .NET framework > version 1.1.4322.573 > Thanks, > Michael([EMAIL PROTECTED]) > <log4net debug="true"> > <renderer > renderingClass="com.mcm.framework.Log4Net.Renderers.AseExcepti > onRenderer, com.mcm.framework.Log4Net.Renderers" > renderedClass="Sybase.Data.AseClient.AseException, > Sybase.Data.AseClient" />--> > > <appender name="SmtpAppender" > type="log4net.Appender.SmtpAppender"> > <!--<to > value="[EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED];[EMAIL PROTECTED] > .com" />--> > <to value="[EMAIL PROTECTED]" /> > <from value="[EMAIL PROTECTED]" /> > <subject value="PROD ITD Import Test Benchmark > Errors" /> > <smtpHost value="inbound-smtp.mellon.com" /> > <bufferSize value="1" /> > <lossy value="false" /> > <filter type="log4net.Filter.LevelRangeFilter"> > <levelMin value="WARN"/> > <levelMax value="FATAL"/> > </filter> > <layout type="log4net.Layout.PatternLayout"> > <param name="Header" value="[Begin]\r\n" /> > <param name="Footer" value="[End]\r\n" /> > <param name="ConversionPattern" > value="[%d] %-5p [%c] [%P{log4net:HostName}] [%x] > <%X{auth}> <%X{configFile}> \r\n %m%n \r\n" /> > > </layout> > </appender> > > <!-- Define some output appenders --> > <appender name="RollingFileAppender" > type="log4net.Appender.RollingFileAppender"> > <file > value="U:\\MCMApps\\Prod\\Log\\STE\\TestBenchmarkLog.txt" /> > <appendToFile value="true" /> > <rollingStyle value="Size" /> > <maxSizeRollBackups value="5" /> > <maximumFileSize value="600KB" /> > <staticLogFileName value="true" /> > <layout type="log4net.Layout.PatternLayout"> > <param name="ConversionPattern" > value="[%d] %-5p [%c] [%P{log4net:HostName}] [%x] > <%X{auth}> <%X{configFile}> \r\n %m%n \r\n" /> > > </layout> > </appender> > > <appender name="ConsoleAppender" > type="log4net.Appender.ConsoleAppender"> > <layout type="log4net.Layout.PatternLayout"> > <param name="Header" value="[Begin]\r\n" /> > <param name="Footer" value="[End]\r\n" /> > <param name="ConversionPattern" > value="[%d] %-5p [%c] [%P{log4net:HostName}] [%x] > <%X{auth}> <%X{configFile}> \r\n %m%n \r\n" /> > > </layout> > </appender> > > <root> > <level value="DEBUG" /> > <appender-ref > ref="RollingFileAppender" /> > <appender-ref ref="ConsoleAppender" /> > <appender-ref ref="SmtpAppender" /> > </root> > </log4net> > > > The information contained in this e-mail may be confidential > and is intended solely for the use of the named addressee. > Access, copying or re-use of the e-mail or any information > contained therein by any other person is not authorized. > If you are not the intended recipient please notify us > immediately by returning the e-mail to the originator.(16b) > >
