-->
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: Changing the logging settings
PostPosted: Tue Jul 31, 2007 6:31 am 
Regular
Regular

Joined: Thu Apr 05, 2007 7:05 am
Posts: 53
Location: Troisdorf, Germany
Hi at all of you,

I want to change the logging settings of the log4j logger because it is giving too much outpur in my opinion. I already read a lot of stuff in the books and reference but it didn't helped me very far. I know how a logging file should look like but not where I have to place it and especially how to make hibernate know that it is there. In one book I found the advice to use
Code:
PropertyConfigurator.configure("log4j.properties");
but I always get a message that the file could not be found. I tried every url I could imagine and moved the file to different places. But it didn't helped.

So my question is: How cn I tell hibernate tools that I want to use this file?

Hibernate version: 3.2.0 beta8

Full stack trace of any exception that occurs:
Code:
log4j:ERROR Could not read configuration file [log4j.properties].
java.io.FileNotFoundException: log4j.properties (No such file or directory)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at java.io.FileInputStream.<init>(FileInputStream.java:66)
   at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
   at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
   at de.fhg.scai.bio.csr.workflows.Workflow.run(Workflow.java:327)
   at de.fhg.scai.bio.csr.workflows.Workflow.main(Workflow.java:1716)
log4j:ERROR Ignoring configuration file [log4j.properties].


Name and version of the database you are using: oracle 10g


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.