These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Log messages not showing data values
PostPosted: Tue Apr 22, 2008 12:07 pm 
Newbie

Joined: Mon Jul 16, 2007 6:28 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.2

I'm faily new to Hibernate and can't figure out how to get the log messages to display the values that are being inserted into the DB, they are only question marks (?). Below is an example of one of my log messages, the INSERT statement contains the SQL but not the data values, only ?. How can I get it to log the data values instead of just questions marks?

[4/20/08 3:39:07:384 GMT] 0000004b SystemOut O Hibernate: insert into MAPS.AP_CONTROL_REPORT_ITEM (GL_YY_PLAN_YEAR, GL_CD_PLAN_VERSION, GL_MY_ACTUALS_DATE, GL_CD_ACTUALS_VERSION, AP_RL_ITEM_VALUE, AP_NM_REPORT_NAME, AP_CD_REPORT_ITEM, AP_CD_PROCESS_EVENT_RUN) values (?, ?, ?, ?, ?, ?, ?, ?)

Thanks,

Karl


Top
 Profile  
 
 Post subject: log4j.properties file
PostPosted: Tue Apr 22, 2008 2:13 pm 
Newbie

Joined: Mon Jul 16, 2007 6:28 pm
Posts: 3
Just to add to my previous question, my log4j.properties file looks like this:


#Filename: log4j.properties

#Set the global log level
log4j.rootLogger=INFO, CONSOLE

#Display log to console
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
#log4j.appender.ROOT.layout.ConversionPattern=%c %-5p - %m%n
#log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %-20.20c{1} - %m%n
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{yyyy/MM/dd @ HH:mm:ss}]::[%p:%-20.20c{1}] %m%n


log4j.appender.iepdtest = org.apache.log4j.FileAppender
log4j.appender.iepdtest.file = iepd-test-client.log
log4j.appender.iepdtest.layout = org.apache.log4j.PatternLayout
#log4j.appender.iepdtest.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.iepdtest.layout.ConversionPattern=[%d{yyyy/MM/dd @ HH:mm:ss}]::[%p:%-20.20c{1}] %m%n
log4j.appender.iepdtest.append = false


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 8:21 pm 
Beginner
Beginner

Joined: Thu Feb 28, 2008 11:53 am
Posts: 23
Code:
#Log JDBC bind parameter runtime arguments
log4j.logger.org.hibernate.type=INFO


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.