log4j spammy in jooq-codegen-maven-3.3.1.jar

24 views
Skip to first unread message

jsp...@gmail.com

unread,
Apr 9, 2014, 1:40:17 PM4/9/14
to jooq...@googlegroups.com
I'm getting started with jOOQ in a pre-existing Maven project. Since adding the jooq-codegen-maven-3.3.1.jar file as a dependency, I've been getting lots of debug statements from my project. Thousands and thousands of lines like this:


17:07:09,788 DEBUG [org.apache.http.wire                              ] - << "HTTP/1.1 200 OK[\r][\n]"

17:07:09,788 DEBUG [org.apache.http.wire                              ] - << "Date: Fri, 04 Apr 2014 23:07:04 GMT[\r][\n]"

17:07:09,788 DEBUG [org.apache.http.wire                              ] - << "Server: Jetty/5.1.x (Linux/3.11.0-17-generic amd64 java/1.7.0_51[\r][\n]"

17:07:09,788 DEBUG [org.apache.http.wire                              ] - << "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]"



I tracked this down to a log4j.xml setting inside the jar. It had this line:

<priority value="debug" />

Once I changed it from "debug" to "error" and repackaged the jar, the spammy logging stopped. Was this setting intentional? Is there a better way to shut it off than to manually edit a third-party library file?

Roger Thomas

unread,
Apr 9, 2014, 6:21:04 PM4/9/14
to jooq...@googlegroups.com, jsp...@gmail.com
This thread should help to control the messages without having to change the priority value

       http://stackoverflow.com/questions/4915414/disable-httpclient-logging

This topic should help with the overriding of the log4j.xml settings within the jar by
allowing an application wide file to be defined on the command line.

       http://logging.apache.org/log4j/1.2/manual.html#defaultInit

Roger
Reply all
Reply to author
Forward
0 new messages