Re: Load logging.properties of java.util.logging for openJPA logging

2012-06-26 Thread vinbr88
To be honest I didn't found a way to add this line: -Djava.util.logging.config.file=mylogging.properties to an Web Dynamic Project that deploys on Tomcat Server. If you know how to this, pls let me know. In the meantime I found an other solution. I wrote a static class with this input: Logger lo

Re: Load logging.properties of java.util.logging for openJPA logging

2012-06-21 Thread Harald Wellmann
Have you set the system property -Djava.util.logging.config.file=mylogging.properties ? JUL does not pick up a configuration file from the classpath. One of many reasons for not using it ;-) Regards, Harald

Load logging.properties of java.util.logging for openJPA logging

2012-06-18 Thread vinbr88
Hello, I have to use java.util.logging, for logging in my application. Log4j works fine, but has to be replaced. I am configuring logging like this: http://openjpa.apache.org/builds/1.1.0/docs/ref_guide_logging_commons.html http://openjpa.apache.org/builds/1.1.0/docs/ref_guide_logging_commons.ht