First off, "Category" is from older releases. It has been deprecated
and replaced with Logger.

The easiest way to achieve what you want (different log levels and
files for different loggers) is to define different appenders and
attach them to the loggers you want, and disabling additivity to said
loggers. That way their output is restricted to that appender only and
you don't get mixed up output at the root logger.

cheers,

JGN

On 6/6/06, Joe Wong (Mango) <[EMAIL PROTECTED]> wrote:
Hi, I am new to Log4j. What is the easiest way to setup log4j so that my 
application can have different logging level and appender ( different log file 
) based on the category name?

Regards,

- Joe




--
Javier González Nicolini

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

Reply via email to