Hello Sam,


Thanks for the answer. Yes i think the way you suggested is good and will solve
my purpose to route different messages to different mediums.

onemore thing do you have some sample source code for this, or kind of similar.


Thanks
Naresh

Sam Newman wrote:

> My understanding is that a priority level applies to the category, not the
> appenders. What about using 2 categories for the same hierarchy (I asume
> root), and then attach the FileAppender to one, and the SMTPAppender to the
> other?
>
> I actually want to use 2 categories for the same classes hierarchy myself.
> What I'm after is for user generated events to go to one set of appenders,
> and system stuff to go to another set of appenders. Is there any problems
> anyone can see with using 2 categories in this way (bearing in ind one class
> could generate both user and system log entries)?
>
> sam
> ----- Original Message -----
> From: "Naresh Sharma" <[EMAIL PROTECTED]>
> To: "log4j mailing list" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 25, 2001 10:43 PM
> Subject: Multiple Appenders
>
> > Hello Everybody,
> >
> > I have 2 appenders FileAppender and SMTPAppender now I wish that debug,
> > info and warn priority messages to be sent to the file specified with
> > FileAppender but Error and fatel priority message should be logged by
> > SMTPAppender. Is this possible with Log4J?
> >
> >
> > Thanks
> > Naresh
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to