Menu

Some more help

Help
Anonymous
2012-03-07
2013-04-23
  • Anonymous

    Anonymous - 2012-03-07

    Hello again.
    I've been trying to learn the basics of Hibernate in order to further tweak owldb into my needs.

    I wrote some java code to store a big ontology in mysql, and now I want to retrieve information from the database. I have a class that connects to the database, but every time it does so, I get a long list of Hibernate logs printed to the console. How can I prevent that from happening?

    I've been redirected to the logging.properties file, but since I am not using your examples (I simply have some .java files that I compile with using a classpath containing "owldb.jar" and the "*.jar" in the lib/ directory).

    Where should I put the logging.properties file, and must I change the classpath for it to work?

    Thank you very much.

     
  • Jürgen Moßgraber

    Hi,

    see the documentation for plain Java logging. You just need to add the relative or absolute filename to the command line, e.g.:
    -Djava.util.logging.config.file=.\conf\logging.properties

    Jürgen.

     
  • Jotomicron

    Jotomicron - 2012-03-07

    Thanks :)

     

Log in to post a comment.

MongoDB Logo MongoDB