logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richman Michael" <micha...@mcm.com>
Subject RE: intermittent appender failures
Date Wed, 24 Aug 2005 15:29:02 GMT
See below for the debug message. 

Yes, I have log4net watching the config file, which I assume is the reason it starts working
when I re-save the config file.

I've seen the SMTPAppender and RollingFileAppender have this issue, the console appender doesn't
seem to have the problem.

I can try the latest log4net to see if the issue re-occurs.

Michael


C:\Autosys.PRD\tmp>Title TestBenchmarkImport

C:\Autosys.PRD\tmp>U:\MCMApps\Test\Apps\STE\TestBenchmarkIntraDay\ImportTestBenc
hmarks.exe U:\MCMApps\Test\Apps\Config\TestBenchmarkImport.xml U:\MCMApps\Test\A
pps\Config\ExportTestBenchmark.xml U:\MCMApps\Test\Apps\Config\Export_smf_intd_f
or_test.xml 4/22/2005
log4net: DOMConfigurator: Configuration update mode [Merge].
log4net: DOMConfigurator: Rendering class [com.mcm.framework.Log4Net.Renderers.A
seExceptionRenderer, com.mcm.framework.Log4Net.Renderers], Rendered class [Sybas
e.Data.AseClient.AseException, Sybase.Data.AseClient].
log4net: DOMConfigurator: Logger [root] Level string is [DEBUG].
log4net: DOMConfigurator: Logger [root] level set to [name="DEBUG",value=30000].

log4net: DOMConfigurator: Loading Appender [RollingFileAppender] type: [log4net.
Appender.RollingFileAppender]
log4net: DOMConfigurator: Setting Property [File] to String value [U:\MCMApps\Te
st\Log\STE\TestBenchmarkLog.txt]
log4net: DOMConfigurator: Setting Property [AppendToFile] to Boolean value [True
]
log4net: DOMConfigurator: Setting Property [RollingStyle] to RollingMode value [
Size]
log4net: DOMConfigurator: Setting Property [MaxSizeRollBackups] to Int32 value [
5]
log4net: DOMConfigurator: Setting Property [MaximumFileSize] to String value [10
00KB]
log4net: DOMConfigurator: Setting Property [StaticLogFileName] to Boolean value
[True]
log4net: DOMConfigurator: Setting Property [ConversionPattern] to String value [
[%d] %-5p  [%c] [%P{log4net:HostName}] [%x] <%X{auth}> <%X{configFile}>
 %m%n
]
log4net: DOMConfigurator: Setting Property [Layout] to object [log4net.Layout.Pa
tternLayout]
log4net: RollingFileAppender: Searching for existing files in [U:\MCMApps\Test\L
og\STE]
log4net: RollingFileAppender: curSizeRollBackups starts at [0]
log4net: FileAppender: Opening file for writing [U:\MCMApps\Test\Log\STE\TestBen
chmarkLog.txt] append [True]
log4net: DOMConfigurator: Created Appender [RollingFileAppender]
log4net: DOMConfigurator: Adding appender named [RollingFileAppender] to logger
[root].
log4net: DOMConfigurator: Loading Appender [ConsoleAppender] type: [log4net.Appe
nder.ConsoleAppender]
log4net: DOMConfigurator: Setting Property [Header] to String value [[Begin]
]
log4net: DOMConfigurator: Setting Property [Footer] to String value [[End]
]
log4net: DOMConfigurator: Setting Property [ConversionPattern] to String value [
[%d] %-5p  [%c] [%P{log4net:HostName}] [%x] <%X{auth}> <%X{configFile}>
 %m%n
]
log4net: DOMConfigurator: Setting Property [Layout] to object [log4net.Layout.Pa
tternLayout]
log4net: DOMConfigurator: Created Appender [ConsoleAppender]
log4net: DOMConfigurator: Adding appender named [ConsoleAppender] to logger [roo
t].
log4net: DOMConfigurator: Loading Appender [SmtpAppender] type: [log4net.Appende
r.SmtpAppender]
log4net: DOMConfigurator: Setting Property [To] to String value [michaelr@mcm.co
m]
log4net: DOMConfigurator: Setting Property [From] to String value [ImportExportM
onitor@mcm.com]
log4net: DOMConfigurator: Setting Property [Subject] to String value [DEV Import
 Test Benchmark Errors]
log4net: DOMConfigurator: Setting Property [SMTPHost] to String value [inbound-s
mtp.mellon.com]
log4net: DOMConfigurator: Setting Property [BufferSize] to Int32 value [1]
log4net: DOMConfigurator: Setting Property [Lossy] to Boolean value [False]
log4net: DOMConfigurator: Setting Property [LevelMin] to Level value [WARN]
log4net: DOMConfigurator: Setting Property [LevelMax] to Level value [FATAL]
log4net: DOMConfigurator: Setting Collection Property [AddFilter] to object [log
4net.Filter.LevelRangeFilter]
log4net: DOMConfigurator: Setting Property [Header] to String value [[Begin]
]
log4net: DOMConfigurator: Setting Property [Footer] to String value [[End]
]
log4net: DOMConfigurator: Setting Property [ConversionPattern] to String value [
[%d] %-5p  [%c] [%P{log4net:HostName}] [%x] <%X{auth}> <%X{configFile}>
 %m%n
]
log4net: DOMConfigurator: Setting Property [Layout] to object [log4net.Layout.Pa
tternLayout]
log4net: DOMConfigurator: Created Appender [SmtpAppender]
log4net: DOMConfigurator: Adding appender named [SmtpAppender] to logger [root].

log4net: DOMConfigurator: Hierarchy Threshold []


-----Original Message-----
From: Nicko Cadell [mailto:nicko@neoworks.com]
Sent: Wednesday, August 24, 2005 4:16 AM
To: Log4NET User
Subject: RE: intermittent appender failures


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:michaelr@mcm.com] 
> Sent: 23 August 2005 17:09
> To: log4net-user@logging.apache.org
> 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(michaelr@mcm.com) 
> 	  <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="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)
>  
>
 
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