-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate on Weblogic - How to use Log4J instead of default
PostPosted: Mon Feb 10, 2014 6:32 pm 
Newbie

Joined: Mon Feb 10, 2014 6:10 pm
Posts: 1
Hi,
I was using Hibernate 4.3.1 Final version and i want to use Log4J for Logging,
When i use Log4J for different logging levels, its not taking and it seems using some simple logger to do all the kernel debug logs.
How do i eliminate these and direct to use my Log4J?

I have directly created the project under eclipse IDE, and did not use any Maven- i do not have the pom.xml also to do any dependency.

how do i update in eclipse project to use the Log4J. I tried adding slf4j.api-1.6.1.jar and slf4j-log4j12-1.7.6.jar in the classpath to see if this will direct to use my Log4J wchich is in classpath, but its not.

Here is the sample logs i see. It logs thousands of lines.


2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Resolving associations for [com.ejgallo.distributor.claims.model.ClaimCategory#4]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Resolving associations for [com.ejgallo.distributor.claims.model.ClaimCategory#4]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Done materializing entity [com.ejgallo.distributor.claims.model.ClaimCategory#4]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Done materializing entity [com.ejgallo.distributor.claims.model.ClaimCategory#4]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Resolving associations for [com.ejgallo.distributor.claims.model.ClaimCategory#1]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Resolving associations for [com.ejgallo.distributor.claims.model.ClaimCategory#1]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad - Done materializing entity [com.ejgallo.distributor.claims.model.ClaimCategory#1]
2556 [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.hibernate.engine.internal.TwoPhaseLoad


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

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.