No, appenders have priority thresholds as do categories, but configuring
the threshold for an appender for a given category is not supported. You
can configure an appender just for a category and then sets its threshold
as you wish to achieve a custom appender threshold for a category.
log4j.appender.Debug=org.jboss.logging.log4j.FileAppender
log4j.appender.Debug.File=../log/category.log
log4j.appender.Debug.Threshold=DEBUG
log4j.appender.Debug.layout=org.apache.log4j.PatternLayout
log4j.appender.Debug.layout.ConversionPattern=%-5p [%c{1}] %m%n
log4j.category.org.jboss.security=DEBUG, Debug
If you really want this output to go to the console you can configure a
second console appender, but its output would show the two layout
prefixes since the default Console appender uses the
org.jboss.logging.log4j.ConsoleAppender, which replaces the System.out
stream to log with a category name of Default.
----- Original Message -----
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 25, 2001 4:18 PM
Subject: [JBoss-dev] Log4j config question
> Can I turn up the console appender threashold for only one category?
>
> I want the normal console loging but also cmp debug messages. By the way,
I
> rewote the category creation for cmp and eliminated the debug flag from
the
> metadata.
>
> -dain
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development