checked id 3.
jakob
Michael Hart wrote:
Hi Armin,
currently checked in
1. and 2.
Vielen Dank!
please re-post your remaining proposals to
the dev-list.
Will do, as soon as I get the time. Just gotta join up first.
Thanks,
Michael
<snip>
It seems to me that while the logging in OJB is currently pretty good,it
could be improved quite a bit by a number of small enhancements beforegoing
to RC4:change
1. Changing line 247 in OJB.properties that currently reads: org.apache.ojb.broker.accesslayer.JdbcAccess.LogLevel=WARN to: org.apache.ojb.broker.accesslayer.JdbcAccessImpl.LogLevel=WARN
because AFAICS the first line doesn't do anything. (users can then
the level to DEBUG if they want to see interesting output)(commented)
Note that in the log4j.properties file, JdbcAccessImpl is there
instead of the incorrect JdbcAccess.before
2. Making sure PoorMansLoggerImpl actually checks the logging level
returning false for isDebugEnabled() (instead of always returningfalse,
which stops a number of classes from outputting debug statements,including
SqlGeneratorDefaultImpl). Log4J works fine, but PoorMansLoggerImplshould as
well.statement
3. Including logging statements in JdbcAccessImpl.java after each
is bound (usually before it's executed). If the PreparedStatementdoes
implementation has overridden the toString method in a useful way (as
the PostGres JDBC driver, and I'm sure others), then you can see theSQL
without needing P6Spy. For example, lines 258-259 could become:it
broker.serviceStatementManager().bindStatement(stmt, query, cld, 1); logger.debug("Executing SQL: " + stmt); ResultSet rs = stmt.executeQuery();
I've made this change in my local version of JdbcAccessImpl.java and
works a treat.it's a
HSQLDB doesn't have the toString method in their PreparedStatement
implementation, but if you download the source, then you can see that
thevery easy fix. Just add this method to src/org/hsqldb/jdbcPreparedStatement.java:
public String toString() { return this.build(); }
(unfortunately jdbcPreparedStatement.build() is a private method so
above method cannot be implemented in a subclass).would help
Do these suggestions sound useful to anyone, or am I way off track?
Cheers,
Michael
P.S. Oh yeah, and fixing the MIME type for .tgz on the web-server
a lot of newbies as well :-) (I'm assuming this is the problem - that.tgz
is being interpreted as a TAR archive instead of a GZIP archive. Anentry
like this into Apache's mime.types might help: "application/x-gziptgz")
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
