You could create a flag and initialize it to false. Then, if an error occurs, set it to true and check it at the end of the run. If it's true, then email the log file.
Brian Sanders Connextions Application Support 407-926-2411 x468 -----Original Message----- From: koala993 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 5:16 AM To: log4net-user@logging.apache.org Subject: Re: Making SMTPAppender Send Exactly One Email I don't think it's possible, a solution would be to be able to fire only once the "ERROR" log in this situation. Marvin-18 wrote: > > Hi, > > I've read the documentation, but didn't manage to figure out whether the > following is possible - and if so, how: > > I have an application that uses Log4Net (d'uh) and I'd like it to send > me an email with all error messages of one application run. > The reason is that when for instance the database dies, I'd get LOTS of > error messages and I don't want to get thousands of emails about that. > One email would be more than enough. > > How could I achieve that? > > /Marvin > > -- View this message in context: http://www.nabble.com/Making-SMTPAppender-Send-Exactly-One-Email-tf40460 60.html#a11517401 Sent from the Log4net - Users mailing list archive at Nabble.com.