https://issues.apache.org/bugzilla/show_bug.cgi?id=45980

           Summary: SMTPAppender should have a sendOnClose option
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


On Oct 9, 2008, at 12:01 AM, geek.shrek wrote:

Hi,

I would like to send email on WARNING level or higher and append it in the
buffer. When I reach the end of my application I would like to send email that
collected in the buffer even though there is no ERROR.
Is it possible to trigger sending email even though there is no ERROR?

I've tried with the "TriggeringEventEvaluator" but it doesn't seem to work
I set the threshold level to WARN, but to send an email I still need "ERROR"
level to trigger sending an email.

Can anyone help me with this?

Thanks,

----

The proposed enhancement is to add a sendOnClose property that if set to true
would result in an email being sent at appender close if any logging requests
had been buffered.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to