How do I configure Log4J to send different levels to different appenders

2007-07-04 Thread Mikael Ståldal
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.

Re: How do I configure Log4J to send different levels to different appenders

2007-07-04 Thread Mikael Ståldal
Norbert Toth-Gati wrote: 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/

Re: How do I configure Log4J to send different levels to different appenders

2007-07-04 Thread Mikael Ståldal
Norbert Toth-Gati wrote: Concerning the :log4j:ERROR Attempted to append to closed appender named [MAIN_LOG]. Please follow the link, as a similar problem is discussed: http://www.mail-archive.com/[EMAIL PROTECTED]/msg01365.html I have read that thread, and it explains why the solution you

<    1   2