logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: Recipients of email appender depending on log message, possible?
Date Wed, 11 Jul 2007 20:06:43 GMT
There aren't any good examples of the filter syntax that I could find.

Here's a link where someone's doing something similar.  Note, you chain
filters one after another, so sometimes you may need to end the chain
with a DenyAllFilter.

http://www.webdeveloper.com/forum/showthread.php?t=91074



Scott Deboy
Principal Engineer
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR  97201
Office: 503.224.7496
Direct Line: 503.821.6482
Cell: 503.997.1367
Fax: 503.222.0185
sdeboy@comotivsystems.com
www.comotivsystems.com


-----Original Message-----
From: Hans Schwaebli [mailto:hans_schwaebli@yahoo.com] 
Sent: Wednesday, July 11, 2007 12:30 PM
To: Log4J Users List
Subject: Re: Recipients of email appender depending on log message,
possible?

Come on... You know what I mean. I didn't find any good manual or
tutorial freely available for log4j. And I searched for half an hour.
Excuse me if I then dare to ask here. So if anyone can tell me, I would
be glad.


James Stauffer <stauffer.james@gmail.com> wrote: Did you search the
mailing list archives, wiki, and javadocs?

On 7/11/07, Hans Schwaebli  wrote:
> It seems this is a solution. But I couldn't find a site where using
log4j filters is described. Any idea?
>
>
> James Stauffer  wrote:
>   You might be able to achieve that with an appender filter.
>
> On 7/11/07, Hans Schwaebli wrote:
> > I want to send a email depending on the log text. I add the terminal
ID to the log text, which is the one of the user who caused the
exception, which is logged at error level. Depending on that ID (or a
regular expression) I want to send the email to certain recipients.
> >
> > Does this work with log4j configuration out of the box? What is the
solution for this?
> >
> >
> > ---------------------------------
> > Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links.
>
>
> --
> 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
>
>
>
>
> ---------------------------------
> Got a little couch potato?
> Check out fun summer activities for kids.


-- 
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



       
---------------------------------
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

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


Mime
View raw message