Hello,
I have the same problem : I can't view what's the effective value of the SQL parameters passed to the DBMS. I still have the question marks, even if I follow the instructions specified above.
My
log4j.properties :
Code:
log4j.rootLogger=DEBUG,A1
#console logging
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# %-5p : INFO, DEBUG...
# %m%n : the message
# %d : the date with eventually formatting
# %c : class
log4j.appender.A1.layout.ConversionPattern=%-5p - %m%n
#custom logging level
# e-Serve 5 core and learn
#log4j.logger.eserve=INFO
log4j.logger.eserve=DEBUG
# DEBUG: all debug information of the JavaMail API of Sun (content of mail, very dangerous, maybe Mega bytes of Data)
log4j.logger.eserve.mail=ERROR
# DEBUG: HTTP request are written if the e-Serve servlet is used
log4j.logger.eserve.basic.stdimpl.services.servlet=DEBUG
# DEBUG: parameters of the HTTP request are written
# INFO: time used by XSLT transformation and request
log4j.logger.eserve.publish=INFO
# thirdparty libs
log4j.logger.org=ERROR
log4j.logger.com=ERROR
log4j.logger.net=ERROR
log4j.logger.java=ERROR
log4j.logger.com.mysql.jdbc=debug
log4j.logger.org.hibernate.transaction=debug
log4j.logger.org.hibernate.jdbc=debug
log4j.logger.org.hibernate.type=debug
log4j.logger.org.hibernate=debug
log4j.logger.org.hibernate.SQL=debug
log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
#log4j.logger.org.hibernate.cfg=debug
I tried with log4j.logger.
net.sf.hibernate instead of log4j.logger.
org.hibernate but it's not working (nothing is written to the console).
Have I missed some point ?
Thank you in advance,
Joel.