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