log4j in gwt app; how to enable setting in log4j.properties

179 views
Skip to first unread message

Jepse

unread,
Aug 15, 2012, 3:00:16 AM8/15/12
to google-we...@googlegroups.com
Hi there,

i'm getting frustrated more and more. I'm using an ORM Mapper Apache Cayenne. Since i turned of the AppEngine its working fine on the server side. For some reasons Cayenne uses log4j logging "INFO" as default value. That results a lot of logging Information. In other Servlet or Java Apps i just have to add this line to my log4j.properties file to turn logging off:

# Turn SQL tracing off, e.g. to increase performance log4j.logger.org.apache.cayenne.access.QueryLogger = WARN

Therefore i placed a log4j.properties file within my src directory (like all other cayenne depending files; dbconnection etc). But i guess gwt ignores this one file. all other depending files are obviously in use.

does anybody knows how to setup gwt for configuring log4j, even if its just used implicit?

This logging kils my app performance.

Thanks!!

Jepse

Jepse

unread,
Aug 23, 2012, 5:05:36 AM8/23/12
to google-we...@googlegroups.com
Hi!!!

The soloution is so easy. Its necessary to place a log4j.jar into lib folder. That means the log4j component within my dependency-lib "cayenne" is just a lightweight log4j.

the log4j.properties file is to place in src folder

Cheers, Philippe
Reply all
Reply to author
Forward
0 new messages