Hi Try <bufferSize value="0" />
-----Message d'origine----- De : Johnson, Cedrick [mailto:[EMAIL PROTECTED] Envoyé : mardi 27 novembre 2007 19:38 À : log4net-user@logging.apache.org Objet : SmtpAppender sending messages late Howdy- I have a problem with the SMTP Appender in L4N that has stumped me for the better part of today. Summary: When I get a WARN message, it seems that the SMTP Appender will send it out 2-3 minutes after the WARN message was shown in the console. Well, that's all fine and dandy, but by the time we're logging ERROR and FATAL messages, it needs to be as 'instantaneous' as possible. If the app reaches a level where I manually kill it, then the 'backlog' of messages finally gets sent, which is too late. Is there some sort of internal configuration or setting for 'immediate' delivery of messages? I have BufferSize set to 1, which is ok, and lossy set to 'true' Thanks, Cedrick Here's what my SMTPAppender configuration looks like: <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender"> <to value="xxxx" /> <from value="xxxx" /> <subject value="Error" /> <smtpHost value="mailserver" /> <bufferSize value="1" /> <lossy value="true" /> <evaluator type="log4net.Core.LevelEvaluator"> <threshold value="WARN"/> </evaluator> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%newline%date [%thread] %-5level %logger - %message%newline%newline%newline" /> </layout> </appender> -------------------------------------------------------- Ce message et toutes les pièces jointes peuvent être confidentiels, et, de plus, peuvent être couverts par un privilège ou une protection légale. Il est établi à l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse préalable. Toutes opinions exprimées dans ce message, sont personnelles à leur auteur et ne sauraient nécessairement refléter celle de IXIS Corporate & Investment Bank, de ses filiales ou de sa maison mère. Elles sont aussi susceptibles de modification sans notification préalable. Tous droits réservés. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute communication avec IXIS Corporate & Investment Bank peut être contrôlée, enregistrée et conservée. IXIS Corporate & Investment Bank décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Les communications sur Internet n'étant pas sécurisées, IXIS Corporate & Investment Bank informe qu'il ne peut accepter aucune responsabilité quant au contenu de ce message. This email and any attachment may be confidential and may also be legally privileged or otherwise protected from disclosure. It is intended only for the stated addressee(s) and access to it by any other person(s) is unauthorised. Any use, dissemination or disclosure not in accordance with its purpose, either in whole or in part, is prohibited without our prior formal approval. Any opinion expressed in this message may be personal to the author and may not necessarily reflect the opinion of IXIS Corporate & Investment Bank, its affiliates or parent company. It may also be subject to change without prior notice. Copyright reserved. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this email. If you have received it in error, please inform us immediately and delete all copies. Any communication made with IXIS Corporate & Investment Bank (whether personal or business) may be monitored and a record kept. IXIS Corporate & Investment Bank shall not be liable for the message if altered, changed or falsified. As communication on the Internet is not secure, IXIS Corporate & Investment Bank does not accept responsibility for the content of this message. --------------------------------------------------------