log « Development « JPA Q&A





1. Double-logging in Hibernate    stackoverflow.com

I have been using Hibernate very successfully, but today I noticed a bizarre phenomenon to do with logging. If I turn on logging (at a "debug" level) for the classes ...

2. hibernate double logging    stackoverflow.com

I am working on a project using Spring, hibernate and struts2. Queries and system outs are being logged twice. I do have slf4j-api-1.6.1 and slf4j-log4j12-1.6.1 jars in lib folder. log4j.properties

log4j.logger.org.hibernate=info
applicationContext.html
<?xml version="1.0" encoding="UTF-8"?>
<beans ...

3. OpenJPA not logging when deployed on WAS 7    stackoverflow.com

I have deployed my application to WebSphere Application Server 7, it uses the default OpenJPA 1.2.2 library in the application server, however, I cannot get it to log, I have this ...

4. Understanding Hibernate Logging Categories    stackoverflow.com

I'm having some trouble understanding the Hibernate logging categories. I'm basing my assumptions on the documentation located at: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html#configuration-logging I'm using log4j.properties to configure the logging level for Hibernate, ...

5. log configuration for existing application    stackoverflow.com

I have to disable the log for the application that is at my hands now. Application is composed of its own source and number of other components imported by means of jars, It ...

6. How to implement change log with JPA?    stackoverflow.com

I have an entity class manged by with JPA, and I have one entity that needs to be loged changes in its property. Does JPA provides any ways to handle this ...

7. Hibernate interfering with Javamail logging    stackoverflow.com

I am building an application using Javamail. For logging purposes, I set:

properties.put("mail.debug", true);
That enabled logging for Javamail and gives me a lot of useful debugging info. Now, I installed Hibernate which also prints ...

8. hibernate logging    stackoverflow.com

I have an interface that I want Hibernate to log everything to. My curernt configuration is done programmatically, so I don't have any hibernate.properties or hibernate.cfg.xml file.

configuration = new Configuration()  ...

9. How to control Hibernate's logging?    stackoverflow.com

I have a hibernate that is configured only programmatically ( I don't have a single XML file ). I just finished writing my own implementation of org.slf4j.Logger.
How can I force hibernate to ...





10. Hibernate logging    stackoverflow.com

My application uses Hibernate with Ehcache. I have configured log4j with this log4j.properties:

# Configure the console as our one appender
log4j.rootLogger = INFO, A1

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n

log4j.logger.org.hibernate=info
### log HQL query parser activity
log4j.logger.org.hibernate.hql.ast.AST=info
### ...

11. why doesnt hibernate log input ?    coderanch.com

Hi Guys : I've set the property "showSql" in my Hibernate Configuration to "true"... but all it shows is ... insert into tableName (field1, field2, ...) values (?, ?, ...). instead of insert into tableName (field1, field2, ...) values (1.0, 6.10, ...). as one would want it to. Is there another parameter I have to set to convince hibernate into actually ...

12. Hibernate and java.util.Logging    coderanch.com

14. @NotFound(action = NotFoundAction.LOG)    forum.hibernate.org

We have an application which contains some dirty data where foreign keys are defined with the value 0 instead of null when there should be no connection. Most of it has been corrected now, but we are not sure everything is corrected, and the data might be updated by external applications later on. We are currently using NotFoundAction.IGNORE to give an ...

15. Hibernate Logging Question    forum.hibernate.org

Hello, I use Hibernate 3.6.0. Final Release (together with Spring Framework). I've got one question according to the logging. When I look at "lib -> required" slf4j-api.jar is listed. Does that mean that with Hibernate 3.6.0. I MUST use slf4j-Framework? In the end, slf4j is just a logging api and I must use another framework for logging, like log4j or jcl. ...

16. NoClassDefFoundError: org/apache/commons/logging/LogFactory    forum.hibernate.org

hi I am new to Hibernate and was following the hibernate reference pdf. can any body help me on this . i paste the cfg file and the hbm.xml i use Oracle 10g as DB and JDBC version is 9 But i am able to locate the logfactory class with the commonslogging jar. as i followed and built a sample,it throws ...





17. Hibernate Logging Question    forum.hibernate.org

...

18. Turning on logging, doesn't work for me...    forum.hibernate.org

And another newbie question. I want to log my hibernate messages to a file or to the Mac OSX console. I have my log4j.jar in my classpath as well as my hibernate.properties: Code: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### log4j.appender.file=org.apache.log4j.FileAppender log4j.appender.file.File=hibernate.log log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L ...

19. Log messages    forum.hibernate.org

20. hibernate2.1beta6.zip and (.tar.gz) log as 2.1 beta 5    forum.hibernate.org

While trying to get query caches working, I noticed in my logs that hibernate is logging that I'm on '2.1 beta 5' when I'd downloaded the 2.1 beta 6 (both the .zip and .tar.gz show 2.1 beta 5). [INFO] Environment - -Hibernate 2.1 beta 5 [INFO] Environment - -hibernate.properties not found [INFO] Environment - -using CGLIB reflection optimizer [INFO] Configuration - ...

21. Bibernate logging    forum.hibernate.org

Is is possible to get hold of the byte stream that hibernate writes to as log messages so that these messages can be logged using a custom logging framework? Basically we may not be using Log4J or JDK 1.4 for logging but our own logging gramework, in that case how can we get hold of the hibernate log messages and pass ...

22. Logging in a Standalone application    forum.hibernate.org

23. I can't turn on logging - very strange    forum.hibernate.org

I'm experimenting with Hibernate 2.1 in a stand-alone application running on Netbeans. I am trying to turn on log4j logging, unsuccesfully. I have log4j.jar and log4j.properties on my classpath. I am able to use logging in my own code, and affect its behaviour by settings in the log4j.properties file. I cannot turn on logging for the log4j code however. Here are ...

24. Strange new log messages    forum.hibernate.org

I am using the cglib2.jar file that came with 2.1.1. The cglib logs are exactly what I'm looking for. I've played with various log4j configuration options trying to coax logging out of cglib, but haven't been successful. Also, is anyone aware of what affect the cause of these messages may have at runtime? Thanks for your help. -Mitch

25. Hibernate Logging for SAR    forum.hibernate.org

26. Logging problem    forum.hibernate.org

Hi, I'm using log4j with hibernate. The log4j.properties is in my classpath, and contains: log4j.rootLogger = DEBUG, R log4j.appender.R = org.apache.log4j.RollingFileAppender log4j.appender.R.File = C:/Archivos de programa/Apache Group/Tomcat 4.1/logs/gesticon.htm log4j.appender.R.MaxFileSize = 300KB log4j.appender.R.MaxBackupIndex = 2 #log4j.appender.R.layout = org.apache.log4j.SimpleLayout log4j.appender.R.layout = org.apache.log4j.HTMLLayout log4j.logger.net.sf.hibernate=info ### log just the SQL #log4j.logger.net.sf.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.net.sf.hibernate.type=info ### log schema export/update ### log4j.logger.net.sf.hibernate.tool.hbm2ddl=debug ### ...

27. Force Hibernate to use JDK 1.4 logging?    forum.hibernate.org

Is there any way to force hibernate to use JDK 1.4 logging even if log4j.jar is on the classpath? I'm using BEA Weblogic Server, which uses log4j when you deploy its integration applications. However, BEA makes it hard to configure log4j when you're deploying their applications. I'd prefer to have all my code use JDK1.4 logging which I can control much ...

28. Log4JLogger does not implement Log    forum.hibernate.org

I'm using Hibernate 2.1.4. I got the quickstart to work successfully under Tomcat 5. I'm now attempting to use Hibernate in an existing web application I have (that runs under Jetty instead of Tomcat). I'm getting the following error when it tries to start the HibernateUtil class (a servlet that loads at startup similar to the quickstart example): Code: java.lang.ExceptionInInitializerError ...

29. setting up logging with Java logger    forum.hibernate.org

30. NoSuchMethodError: org.apache.commons.logging.impl.Log4JLogg    forum.hibernate.org

Newbie Joined: Fri Sep 17, 2004 8:35 am Posts: 1 Location: Oslo, Norway I have made a hibernate app that works on Tomcat5, however when I deploy the app on a Tomcat4.0 app server it doesnt work. I copied the commons-logging-1.0.4.jar from Tomcat5.0 -> Tomcat4.0 server/lib-category, however I have a problem with: java.lang.NoSuchMethodError at org.apache.commons.logging.impl.Log4JLogger.info Anyone "been there, fixed that" ? ...

31. writing history logs    forum.hibernate.org

Hibernate version: 2.1.6 on a AS400/DB2 Hi, i've got to write some history-logs to db (orginally read values), but i'm not allowed to use triggers because some existing apps writes to the same db/tables and are writing those history-entries on there own ... using triggers will cause duplicate entries in history-tables :( and i don't think that it's possible to determine ...

32. Unable to understand hibernate logs    forum.hibernate.org

Hi I am writing a portlet application on the gridsphere portal framework which uses Hibernate as the persistance layer. The problem is that when I start my application, the following set of logs seems to be repeating as if it is coming out of an infinite loop. Since the implementation of the persistance layer has been done by the framework, the ...

33. Hibernate not logging information    forum.hibernate.org

I feel kind of dumb asking this because I'm sure it's a problem between the chair and keyboard, but I am not able to get Hibernate to log any messages using Log4j. I've debugged the Hibernate code and it jumps right over all logging statements. I'm using Hibernate 2.1. I know Hibernate is reading the log4j.properties file because if I put ...

34. Logging    forum.hibernate.org

Hi, I use the J2EE application server from Sun and the latest stable version of Hibernate. How can I get logging information. I placed log4j in the classpath and have the following log4j.properties file: Code: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### log4j.appender.file=org.apache.log4j.FileAppender log4j.appender.file.File=hibernate.log log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} ...

35. [question] implementing custom change logging    forum.hibernate.org

Hello, we have a requirement in our application to track all changes to certain entities in a separate application-specific table. It seems obvious that Hibernate has all the information required for this task, and it would be nice if we could hook into Hibernate and thus automate the process. I would assume that similar things have been done by otherr before. ...

36. where are Log and LogFactory classes (package namingproblem?    forum.hibernate.org

Hibernate version: 3.0 i'm having problems at following the simple start with tomcat on hibernate reference, and i'm stuck in the example of the Cat, which reads as follows "We implement a HibernateUtil helper class: import net.sf.hibernate.*; import net.sf.hibernate.cfg.*; public class HibernateUtil { private static Log log = LogFactory.getLog(HibernateUtil.class);" my IDE (NetBeans) says it can't find Log class, that in my ...

37. Logging problem?????    forum.hibernate.org

Author Message fenny Post subject: Logging problem????? Posted: Wed Jun 08, 2005 5:22 am Newbie Joined: Thu May 12, 2005 12:01 am Posts: 4 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: hibernate 2.0.3 Mapping documents:

38. How can I reduce the logging output to System.err?    forum.hibernate.org

Hibernate version: 3 Normally I use Hibernate with web applications where I use log4j, and Hibernate doesn't give me any unneccessary output in that setting. This time I had a project where I used Hibernate outside web context and wehre I didn't use log4j or any other logging library for that matter. So now every time I .configure() Hibernate I get ...

39. ConstraintViolationException logged before being thrown    forum.hibernate.org

It appears that hibernate logs ConstraintViolationException at ERROR level before actually throwing it. It sort of screws me up because I am actually expecting it under some conditions and don't want the log to be polluted with meaningless exceptions. Any way to tell hibernate not to do it short of changing the log levels? code: try { if (counter.isPersisted()) { session.update(counter); ...

40. Catch StaleObjectStateException - No Logging    forum.hibernate.org

Using v3.1 Beta2. I have a situation where I'm storing a persisted object in a web session variable that is using a timestamp for optimistic locking. It is possible for that persisted object to change during the course of a session. So if I make a change to the object stored in the session and attempt to save it, I may ...

41. Hibernate is not logging full information    forum.hibernate.org

Dear All, I am facing a problem that the query processed through the Hibernate are not shown by weblogic. E.g The logs I am able to see at weblogic side is. --------------------------------------------------------------------- Hibernate: select user0_.USER_ID as USER1_0_, user0_.STATUS as STATUS21_0_, user0_.LICENSE_AGREEMENT_STATUS as LICENSE3_21_0_, user0_.i18n_id as i4_21_0_, user0_.timezone_id as timezone5_21_0_, user0_.COMPANY_ID as COMPANY6_21_0_, user0_.internal_identifier as internal7_21_0_, user0_.USERNAME as USERNAME21_0_, user0_.FIRST_NAME as FIRST9_21_0_, ...

42. duplicate logging    forum.hibernate.org

43. Hibernate Logging    forum.hibernate.org

44. logging with jdk 1.4    forum.hibernate.org

I have read many articles on hibernate and logging, but they all say that you can use either log4J or the jdk 1.4 built-in logging, but then they all go on to show you how to turn on logging only in log4J. Does anyone know how to do it with the jdk logger?

45. Questions about Hibernate log.    forum.hibernate.org

MarcosAntonioPS wrote: I think that my version of Hibernate is using commons-logging-1.0.4.jar because it is in my classpath and Log4j is not. So, how should I proceed? Thank you. [/quote] the commons-logging library file allows you to specify a logging variable to use. it is then typical of java applications to use log4j to configure the logging settings. I think hibernate ...

46. how to specify hibernate log when we use java.util.logging??    forum.hibernate.org

java.util.logging is separate from log4j. Even if your application uses the java logging stuff, Hibernate uses log4j. The only way to configure Hibernate's logging is to configure log4j. You could use Apache commons-logging to wrap both loggers, but that's pointless seeing as Hibernate uses log4j classes throughout. Just stick with separate logging for your app and Hibernate, it's simplest.

47. Logging Parameters    forum.hibernate.org

Hibernate logs SQL executed to the 'org.hibernate.SQL' category on one line. And the parameters/return value to the 'org.hibernate.type.*' categories, each on their own line. Is there any way to get a condensed version of the parameters on a single line? Our custom framework does this now and our logs are >4GBs per day, much of which is SQL. We're concerned that ...

48. configuring hibernate logging    forum.hibernate.org

Hi, is it possible to configure hibernate log (log4j) ??? A have an aplication where i need to get some information writen in console, but, hibernate writes a lot of log in console... id like to disable hibernate log for a while. What can i do?? I cant find log4j.properties.... thanks Augusto

49. SQLException: Must be logged on to serve    forum.hibernate.org

51. logging returned objects prints out [Ljava.lang.Object;@6179    forum.hibernate.org

How come I'm getting an array of objects looks like I get two of the same ReleaseScheduleBean and then two of the MilestoneBean? Here is my query: Code: this.getHibernateTemplate().find("from " + ReleaseScheduleBean.class.getName() + " rsBean inner join rsBean.milestone msBean where msBean.productID = ? order by msBean.number" , id); I'm expecting an ArrayList of ReleaseScheduleBeans with it's milestone property set with the ...

52. Hibernate Logging    forum.hibernate.org

hibernate version: 3 Hello, We need help from support group. We are having an issue in our application and its details are as follows. ISSUE : We are not able log entries in webshere network deployment architecture. We are using log4j properties for logging purpose. We are able to see all other entries except hibernate entries. We did enable show sql ...

53. NullableType Log    forum.hibernate.org

54. org.hibernate.type not being logged    forum.hibernate.org

For below log4j config, i'm seeing all messages as intented by the configuration except for org.hibernate.type. Is there anything else i need to do to make these messages appear ? I'm using hibernate 3.1, spring 2.0, wls 8.1. ...

59. Hibernate Logs    forum.hibernate.org

60. Warnings on hibernate log    forum.hibernate.org

Hi: I have been using hibernate with MS Sql Server for a time. I want to put a timeout time in all queries to database. To do this i read that i can use C3p0 pool and set the propertie of timeout but in my log i have some warnings that i want to eliminate. These are the warnings: Code: 2007-09-24 ...

61. Logging    forum.hibernate.org

62. Logging is not working (DUPLICATE, SORRY)    forum.hibernate.org

Hi all I've just started using hibernate so sorry if this question is too stupid. I want to use log4j for logging sql statements and many other hibernate messages. I've read the manual and tried to do it myself but it doesn't work. I use hibernate 3.2, Java 1.6, and Apache Tomcat 6. The structure of my project is something like ...

63. Logging is not working    forum.hibernate.org

Hi all I've just started using hibernate so sorry if this question is too stupid. I want to use log4j for logging sql statements and many other hibernate messages. I've read the manual and tried to do it myself but it doesn't work. I use hibernate 3.2, Java 1.6, and Apache Tomcat 6. The structure of my project is something like ...

64. Redirecting hibernate logging    forum.hibernate.org

If i put log4j.rootLogger=warn, file in the log4j file then all the log goes into that file, I need the Hibernate log alone to go into the hibernate.log file. Here is what i am trying to achieve... 1. All logs except hibernate and my class files go to rootLogger 2. Hibernate logs go to Hibernate.log file 3. My class file logs ...

65. how to neutralize the hibernate log ???    forum.hibernate.org

hi , i have tried changing the log4j.properties in the classPath , i have tried it by adding to the ..server\default\conf\log4j.xml : Code: ...

66. unable to see the logs    forum.hibernate.org

67. unable to see the logs    forum.hibernate.org

68. unable to see the logs    forum.hibernate.org

69. Log messages not showing data values    forum.hibernate.org

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 ...

70. Excessive Logging    forum.hibernate.org

I need logging to be at info level. Using info level causing excessive logging: 2008-05-27 14:16:32,444 INFO Not binding factory to JNDI, no JNDI name configured 2008-05-27 14:16:32,165 INFO building session factory 2008-05-27 14:16:32,133 INFO Named query checking : enabled 2008-05-27 14:16:32,132 INFO Deleted entity synthetic identifier rollback: disabled 2008-05-27 14:16:32,132 INFO Default entity-mode: pojo 2008-05-27 14:16:32,131 INFO Statistics: disabled 2008-05-27 ...

71. Question about logging with hibernate in a web application    forum.hibernate.org

I have a question about logging to a file log with hibernate 3.1 in a web application. Please I need to know how to configure the log4j.properties and my apache tomcat web container to logging all the sql statements executed by hibernate to log file that I could see later. this is my log4.properties configuration: ### direct log messages to stdout ...

72. Stop logging of org.hibernate.util.JDBCExceptionReporter    forum.hibernate.org

Hello, I want to get rid of logging class org.hibernate.util.JDBCExceptionReporter. My server.log (JBoss) if full of this WARNings: Code: 2008-06-26 07:51:55,265 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 0, SQLState: 00000 2008-06-26 07:51:55,265 WARN [org.hibernate.util.JDBCExceptionReporter] duration: 0.071 ms statement: EXECUTE [PREPARE: SHOW TRANSACTION ISOLATION LEVEL] 2008-06-26 07:53:29,625 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Warning: 0, SQLState: 00000 2008-06-26 07:53:29,625 WARN ...

73. Hibernate logging.    forum.hibernate.org

74. How do i supress hibernate logs.    forum.hibernate.org

75. hibernate log    forum.hibernate.org

Hi all, this is how my log4j properties is configured # root logger log4j.rootLogger=trace, R #hibernate log log4j.logger.org.hibernate.SQL=trace log4j.logger.org.hibernate.jdbc=trace, R log4j.logger.org.hibernate.transaction=trace, R log4j.logger.org.hibernate.type=trace log4j.additivity.org.hibernate.sql=trace, R log4j.logger.net.sf.hibernate=trace, R log4j.logger.net.sf.hibernate.type=trace, R log4j.additivity.net.sf.hibernate=trace, R log4j.additivity.net.sf.hibernate.type=trace, R hibernte sql statements are still shown on console... any suggestions pls ? web.xml log4jConfigLocation /WEB-INF/classes/log4j.properties hibernate.cfg.xml true Thanks K

76. Hibernate logging: odd man out    forum.hibernate.org

Hi all, I am using Hibernate 3.3.0SP1 in WebSphere 6.1, using Spring 2.5.5, configured with JBossCache 1.4.1SP10 as the second level cache provider. For logging, I am not able to get Hibernate to log successfully. WebSphere, Spring, JGroups , and JBossCache all used Jakarta Commons Logging, which I have configured to log on top of Log4j by virtue of having the ...

77. Dynamic activation of parameter value logging    forum.hibernate.org

Problem: Logging parameter values for prepared statements using dynamic setting of log levels. I'm aware of monitoring hibernate generated SQL including parameter and return values by setting the log level of org.hibernate.SQL to DEBUG and org.hibernate.type to TRACE. My problem is that i like to activate monitoring dynamically when needed. Actually I'm using a JMX Bean to set the level of ...

78. Issue with log levels    forum.hibernate.org

My application is printing all SQL statements it executes, for example: Hibernate: select * from ( select hibernatee0_.id as ... Hibernate: select * from ( select hibernatee0_.id as ... How do I turn this off? I have my log4j configuration set to ERROR. The Hibernate logs are the only logs that are printed to the log file. The log4j config file ...

79. StackOverflowException when log is activated    forum.hibernate.org

Hello all, When I activate the Hibernate Log in my code I run into the following exception Stack Trace Stack Trace java.util.concurrent.ExecutionException: java.lang.StackOverflowError Caused by: java.lang.StackOverflowError at java.text.DateFormat.format(DateFormat.java:314) at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:358) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.log(Category.java:853) at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAdapter.java:204) at org.hibernate.jdbc.AbstractBatcher.logOpenPreparedStatement(AbstractBatcher.java:410) at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:160) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573) at org.hibernate.loader.Loader.doQuery(Loader.java:696) This ...

80. Manipulate log messages    forum.hibernate.org

Hey, Im using Hibernate v3.2.6GA Is there anyway to disable hibernate logging when performing a specific operation ? One of the tables has new rows inserted to it every few seconds, and sometimes i get unique constraints causing my log file to get extremly big. I want to handle this specific case and not let Hibernate log it itself. (Abviously i ...