You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Matthias Petersen <m....@mssys.com> on 2006/12/19 11:01:21 UTC

How to get all logging in the case of an error ?

Hi,
I have the following configuration:

ConsoleAppender for INFO and ERROR
SMTP-Appender for ERROR

The problem is that I want to send a mail with the SMTP-Appender with all
logging events in the case of an error, because when an errors occurs the
INFO events contain additional informations (e.g. command line parameters of
the application). But I can't configure the SMTP-Appender for the additional
INFO events because I want to receive the mail only in the case of an error.

No Error: No Mail
Error: Mail including INFO and ERROR

Has anybody a good idea for this problem ?

Bye,

Matthias

--
ms management systems gmbh
Krokamp 29, 24539 Neumünster
Fon     : 04321.9995-49
Fax     : 04321.9995-41
E-Mail  : M.Petersen@mssys.com


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: How to get all logging in the case of an error ?

Posted by James Stauffer <st...@gmail.com>.
AFAIK, SMTPAppender supports that.  What happened when you tried it?

On 12/19/06, Matthias Petersen <m....@mssys.com> wrote:
> Hi,
> I have the following configuration:
>
> ConsoleAppender for INFO and ERROR
> SMTP-Appender for ERROR
>
> The problem is that I want to send a mail with the SMTP-Appender with all
> logging events in the case of an error, because when an errors occurs the
> INFO events contain additional informations (e.g. command line parameters of
> the application). But I can't configure the SMTP-Appender for the additional
> INFO events because I want to receive the mail only in the case of an error.
>
> No Error: No Mail
> Error: Mail including INFO and ERROR
>
> Has anybody a good idea for this problem ?
>
> Bye,
>
> Matthias
>
> --
> ms management systems gmbh
> Krokamp 29, 24539 Neumünster
> Fon     : 04321.9995-49
> Fax     : 04321.9995-41
> E-Mail  : M.Petersen@mssys.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org