Way to set another log file for one category with different log level

2002-11-05 Thread Wataru Fukushima
How can I write log4j.proerties to output two different log files for one category when each threshold is different? In other words, I want two output: - error.log for output errors only - debug.log for output all logs The Java code is something like this: Logger log =

Can groups of classes be assigned independent appenders?

2002-11-05 Thread Evans Mark-PT1167
Can a class or group of classes be assigned to appenders independently from other classes? I'd like to implement a message driven bean in Jboss and I'd like the output of that bean to go to a log file other then the standard application server log. Thanks, Mark -- To unsubscribe, e-mail:

Re: Can groups of classes be assigned independent appenders?

2002-11-05 Thread Jacob Kjome
It all depends on how you name your loggers. The common way to name your loggers is, of course, private static final Logger logger = Logger.getLogger(MyClass.class.getName()); this would end up being called something like: org.myorganization.mypackage.mysubpackage.MyClass to have every