Re: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-19 Thread Javier Gonzalez
On 9/13/06, David [EMAIL PROTECTED] wrote: I am using categories, but I can't find the appropiate combination for that. I expect the following configuration should work: log4j.rootCategory=DEBUG, logFile, htmlLogFile, console # com.schinvest is my application

Re: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-19 Thread David
Dear Javier Gonzalez, Thanks for the reply. I have tested not adding the additivity condition, but the I get a repeated messages on one of the outputs. Other guy from the list, tell that what I want is not possible with a properties file configuration, I have to use XML

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-18 Thread David
Dear Jacob, Thanks for your comments, I have addes this new features on Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=40532 About your suggestions, I have a general idea about what you mean in order to specify the oposite situation (so, limit my classes and for

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-18 Thread Jacob Kjome
Quoting David [EMAIL PROTECTED]: Dear Jacob, Thanks for your comments, I have addes this new features on Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=40532 Like I said, I doubt this will get into Log4j-1.2.xx unless you provide a patch that doesn't break existing

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-17 Thread David
Dear Bender,Thanks four your xml sample now it works as I expect, on the attached file you will find it.Nevertheless I have some comments, I am not log4j expert, but I guess the syntax could be simplified, and probably it is possible:1. With your suggestion, I have to specify explicit

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-17 Thread Jacob Kjome
At 07:19 PM 9/17/2006, you wrote: Dear Bender, Thanks four your xml sample now it works as I expect, on the attached file you will find it. Nevertheless I have some comments, I am not log4j expert, but I guess the syntax could be simplified, and probably it is possible: 1. With your

How configure the categories for console, logFile and htmlFile showing different levels

2006-09-14 Thread Bender Heri
Since you defined additivity=false on your com.schinvest Logger, the log messages don't reach the root logger. Your goal can be achieved by xml configuration where you can declare filters on appenders. So you only declare a root logger with debug level and a net.sf logger with warn level. On

RE: How configure the categories for console, logFile and htmlFile showing different levels

2006-09-14 Thread Bender Heri
Here is an example of an xml configuration which uses filters (BTW: Using this two appenders when debugging in eclipse the console shows the DEBUG and INFO in black color and the others in red color). You can also write your own filter class where you are free to filter what you want. Be

How configure the categories for console, logFile and htmlFile showing different levels

2006-09-13 Thread David
Dear members, I would like to separate the information from log4j ouptut into the following appenders (files) htmlLogFile, console: myapp for INFO level, net.sf for WARN level logFile: myapp for DEBUG level, net.sf for WARN level so I