Hi The way I got to stop too much level of info log by Cayenne, but keeping a more detail level to other stuff, using this parameter into my configuration:
*log4j.logger.org.apache.cayenne=ERROR* Sample of my log4j.properties: *# Root logger option* *log4j.rootLogger=DEBUG, file, stdout* *log4j.logger.org.apache.commons.httpclient=ERROR* *log4j.additivity.org.apache.commons.httpclient=false* *log4j.logger.org.apache.cayenne=ERROR* *#log4j.additivity.org.apache.cayenne=false* *log4j.logger.org.cyberneko.html=ERROR* *log4j.additivity.org.cyberneko.html=false* *log4j.logger.org.apache.velocity=ERROR* *log4j.additivity.org.apache.velocity=false* *log4j.logger.org.dom4j=ERROR* Best Regards EMERSON On Thu, Jun 14, 2012 at 11:51 AM, cghersi <[email protected]>wrote: > Hi all, > > I started using Cayenne two years ago, and I've never understand how to > correctly configure logging feature. > I'm using Cayenne 3.0 under OSGi environment, and I also use log4j in my > environment. > In my log4j.xml XML configuration file I added this entry: > <logger name="org.apache.cayenne.access.QueryLogger" > additivity="false"> > <level value="error"/> > <appender-ref ref="File" /> > <appender-ref ref="console" /> > </logger> > > but nevertheless I can see a huge amount of logs from QueryLogger class. > I tried to put this file everywhere in my PC, but same results everytime! > :( > > Is there any configuration I need to add during the configuration of > Cayenne? > > Thank you very much! > Best > cghersi > > -- > View this message in context: > http://cayenne.195.n3.nabble.com/Cannot-correctly-configure-log4j-to-log-Cayenne-stuff-tp4024280.html > Sent from the Cayenne - User mailing list archive at Nabble.com. >
