logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Jack" <adam.j...@AdventureCentral.com>
Subject RE: SmtpAppender buffer flush (to mail) on shutdown.
Date Sat, 24 Sep 2005 15:15:10 GMT
I've experienced this even with lossy="true", so I don't believe this is
the issues.  Anybody have any insights into how I might stop this buffer
flush to mail?






From: Adam Jack 
Sent: Tuesday, September 20, 2005 8:29 PM
To: 'log4net-user@logging.apache.org'
Subject: SmtpAppender buffer flush (to mail) on shutdown.


Howdy folks,


I hope this isn't an FAQ, but I couldn't find the answer in mailing list
archives or in the documentation. 


I have an SmtpAppender pretty much configured as in the example:




It is running inside my webapp (configured in the web.config) and works
wonderfully, e-mailing me when I get a page crash/error event. 


The only bummer is sometimes it e-mails me when nothing is wrong, but
the webapp has timed out (and is being torn down.) The buffer of
non-error log message is sent to me. I've attached the config below, and
looking at it I see lossy set to false - which is a worry, I'll set it
true again - but I'm pretty certain I only tinkered with that setting
when this started happening. Of course, I was preparing this e-mail as I
found that setting. 


Time will tell if this fixes the problem, but I'd really appreciate
insights. Is this a designed in feature, or an unintentional side
effect? If intentional can I disable it with some (say) disable
statement when I capture the shutdown event?


Thanks for insights, and thanks for this product on this platform.






Adventure Central


"Great Experiences Deserve Great Technology"

303 292 5522 x111

Denver, CO USA




                        <appender name="SmtpAppender"

value="Adam.Jack@AdventureCentral.com" />

value="dev@AdventureCentral.com" />

                                    <subject value="AdventureWeb
Logging." />

                                    <bufferSize value="512" />

                                    <lossy value="false" />


                                                <threshold value="ERROR"



value="%property{log4net:HostName} :: %level :: %message %newlineLogger:
%logger%newlineThread: %thread%newlineDate: %date%newlineNDC:
%property{NDC}%newline%newline" />



View raw message