staticLogFileName property doesn't work in CompositeRollingAppender

2003-09-04 Thread Bansemir, Carsten
Hi, I want to set the staticLogFileName property of the CompositeRollingAppender to false: param name=StaticLogFileName value=false / but I only get the warning: log4j:WARN Failed to set property [staticLogFileName] to value false. I tried to debug this situation, and I found

RE: logging JDBC objects

2003-09-04 Thread Shapira, Yoav
Howdy, I personally am not a big fan of logging these types of objects: I much prefer logging the beans I create from result sets (or DAO objects, or whatever we call them this week). However, one possibility for you would be to create a ResultSetRenderer (implements

AW: define different level for logging at file basis

2003-09-04 Thread KLAUS . MICHEL
Hi Everybody, I tried to define a level for an class. The line in the log4j example sort4.properties looks like this: log4j.logger.org.apache.log4j.examples=INFO, A2 and I want to define it for a single class like this: log4j.logger.org.apache.log4j.examples.Sort=INFO, A2 Does anyone know why

RE: logging JDBC objects

2003-09-04 Thread Kevin LaVergne
Howdy, At my company, I am in our production support team and I can say that it is VERY helpful to log PreparedStatements with the parameters replaced. This makes it very easy to debug problems with SQL in code. I have attached my wrapper PreparedStatement class. Hopefully this helps. Kevin

RE: define different level for logging at file basis

2003-09-04 Thread Shapira, Yoav
Howdy, It should work... I define class-specific logging levels in propery files all the time. Of course, what you did was also make only the Sort class append to the A2 appender. You may want to keep A2 associated with the whole package, so do: log4j.logger.org.apache.log4j.examples=WARN, A2

AW: define different level for logging at file basis

2003-09-04 Thread KLAUS . MICHEL
Hi, my concrete Property File looks like this (only the first part): log4j.rootCategory=WARN, A1, R, D log4j.logger.com.lhsystems.travelex.framework=ALL, A1,D, R log4j.logger.com.lhsystems=ERROR, R log4j.logger.com.lhsystems.travelex.framework.components=WARN, ALL, A1, R, D

RE: define different level for logging at file basis

2003-09-04 Thread Shapira, Yoav
Howdy, Do you have a appenders named R and D defined in the file? Also, you know you don't have to assign appenders to all the packages, only to the root logger, right? Unless you're doing non-default additivity, which doesn't seem to be the case, all loggers will inherit appenders. Yoav

RE: logging JDBC objects

2003-09-04 Thread Donald Larmee | ALTERTHOUGHT
In the past I have used a generic bean-util style widget that uses reflection to introspect any passed Object, and dumps its contents into a formatted Stringwhich is then in turn logged. The DumpUtil (as I have implemented anyway) works well for reasonably simple/flat Objects, but does not

RE: logging JDBC objects

2003-09-04 Thread Shapira, Yoav
Howdy, Another take on this is BeanUtils#describe(Object bean) which returns a Map of properties. Java.util.HashMap's toString() method prints out very nicely, so you don't have to do much work here. (I'm talking about jakarta-commons-beanutils of course ;)) A downside to both the above and I

RE: Problem with Crimson parser

2003-09-04 Thread Ceki Gülcü
Can be it that the file has the wrong line separators? At 02:12 PM 9/3/2003 -0400, you wrote: Ceki, I tried initializing with a sample xml config file from the distribution and it works fine with Crimson. I tried playing around with DOCTYPE and other preamable elements in my document but I

RE: Problem with Crimson parser

2003-09-04 Thread Ceki Gülcü
The first three bytes in of the config file are (in hex) EF BB BF instead of ?x, or 3C 3F 78 in hex. Your file looks OK otherwise. Just remove the first 3 bytes to keep Crimson happy. At 02:12 PM 9/3/2003 -0400, [EMAIL PROTECTED] wrote: Ceki, I tried initializing with a sample xml config

RollingFileAppender does not create backups

2003-09-04 Thread Tarek M. Nabil
Hi everyone, I'm having a problem with the RollingFileAppender on WebSphere 5.0 for Windows. My problem is that, although I have specified 20 backup files, I never get any backups. The moment the file reaches the maximum size, it's deleted and a new one created (I guess, as the older one

log4j.xml file

2003-09-04 Thread Digambar, Shaligram (Consultant)
Are there any resources/samples of log4j.xml files? Most of the resources relate to .properties files. Thanks, Shaligram - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use,

RE: logging JDBC objects

2003-09-04 Thread Donald Larmee | ALTERTHOUGHT
Re: Public info You are correct, although one can attempt to cheat a bit and get access to private material by calling the AccessibleObject.setAccessible() method to force an override. (will work unless the JVM has had its SecurityManager permissions tightened up a bit :) ) -don At 11:51

RE: log4j.xml file

2003-09-04 Thread Mark.Priest
Yes, Under the distribution package look in ../src/java/org/apache/log4j/xml/examples -Mark -Original Message- From: Digambar, Shaligram (Consultant) [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 11:09 AM To: 'Log4J Users List' Subject: log4j.xml file Are there any

AW: define different level for logging at file basis

2003-09-04 Thread KLAUS . MICHEL
Hi Yoav, yes I have the appenders R and D, I know I don't have to assign to all packages, In production I change the root appender to WARN or INFO. Therefore most definitions make sence. I tested to do it with log4j.rootLogger=ALL, A1 instead of the Category, but it doesn't work at all best

RE: Problem with Crimson parser

2003-09-04 Thread Mark.Priest
Ceki, Thank you - that fixed my problem! The characters 0xEFBBBF are the UTF-8 Byte Order Mark that is part if the unicode standard. Apparently, Crimson can't handle UTF-8 while Xerces can. On another topic, do you if there any is interest in the patch I contributed to fix the LoggerFactory