logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richman Michael" <micha...@mcm.com>
Subject intermittent appender failures
Date Tue, 23 Aug 2005 16:09:14 GMT
> 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(michaelr@mcm.com)
>   <log4net debug="true">
>   	<renderer renderingClass="com.mcm.framework.Log4Net.Renderers.AseExceptionRenderer,
com.mcm.framework.Log4Net.Renderers" renderedClass="Sybase.Data.AseClient.AseException, Sybase.Data.AseClient"
/>-->
> 
>   <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
> 	<!--<to value="michaelr@mcm.com;kathyg@mcm.com;paulh@mcm.com;richm@mcm.com" />-->
> <to value="michaelr@mcm.com" />
> 	<from value="ImportExportMonitor@mcm.com" />
> 	<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]
&lt;%X{auth}&gt; &lt;%X{configFile}&gt; \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]
&lt;%X{auth}&gt; &lt;%X{configFile}&gt; \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]
&lt;%X{auth}&gt; &lt;%X{configFile}&gt; \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)

Mime
View raw message