The hibernate docu says show_sql: Write all SQL statements to console. This is an alternative to setting the log category org.hibernate.SQL to debug
As an alternative, the org.hibernate.SQL log4j property should work. The problem is that I am also interested in other org.hibernate.xxx logging properties (that I cannot set in the hibernate config file). Paul Smith-2 wrote: > >> >> Unfortunately, I cannot get any Hibernate logs on my tomcat logging >> file >> unless I explicitly set the attribute >> >> <property name="show_sql">true</property> >> >> on my hibernate.cfg.xml file. (and I can't get my queryparameters, >> on which >> I am interested in). >> > > This is really a Hibernate question. If you actually dig into the > Hibernate source code you will find that it will not log anything > unless that Hibernate property is set. This is not something log4j > has control over. > > cheers, > > Paul Smith > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Log4j-not-logging-hibernate-tf4738349.html#a13562544 Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]