Hi Mikael,
You may try to configure the following categories:
<category name="com.mycompany">
<priority value="DEBUG"/>
<appender-ref ref="MAIN_LOG"/>
<appender-ref ref="DEBUG_LOG"/>
</category>
<category name="com.othercompany">
<priority value="WARN"/>
<appender-ref ref="MAIN_LOG"/>
</category>
<category name="com.othercompany">
<priority value="DEBUG"/>
<appender-ref ref="DEBUG_LOG"/>
</category>
You may need to configure all the thirdparty logs to end up in the following
appenders:
<category name="org.thirdparty">
<priority value="ERROR"/>
<appender-ref ref="MAIN_LOG"/>
</category>
<category name="org.thirdparty">
<priority value="INFO"/>
<appender-ref ref="DEBUG_LOG"/>
</category>
Hope that helps.
Regards,
Norbert
On 7/4/07, Mikael Ståldal <[EMAIL PROTECTED]> wrote:
I have two appenders, MAIN_LOG and DEBUG_LOG. I have the loggers set up to
match Java class
hierarchy as recommended. I have two interesting codebases, "com.mycompany"
and
"com.othercompany".
I want to send DEBUG and higher from "com.mycompany" and WARN and higher
from
"com.othercompany" to MAIN_LOG. And I want to send DEBUG and higher from "
com.mycompany" and
DEBUG and higher from "com.othercompany" to DEBUG_LOG.
Finally I want to handle stuff outside "com.mycompany" or "
com.othercompany" (such as
"org.thirdparty") by sending ERROR and higher to MAIN_LOG and INFO and
higher to DEBUG_LOG.
How do I accomplish that?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]