Thanks Jon Skeet i will look into that
-Narendra

-----Original Message-----
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 2:17 AM
To: Log4J Users List
Subject: RE: setting of priority for a category based on Appender


> i am new to log4J. i am using  2 types of Appenders  one is
> JDBC Appender
> and second one is File . And i have different categories.
>
> my doubt is how can i set the priority for category based on
> the Appender.
>
> for example: For a category  com.foo.Abc I want to log the messages in
> Database and file. But for Database the priority should be
> Debug. And For
> the Appender File the priority should be Error.
>
> Can any body help me how to prepare the configuration file.

You need to set the Threshold for the appenders - the documentation
should show you how to do that (at least, the PropertiesConfigurator one
does).

Jon

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


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

Reply via email to