1

How can I set the logging levels of OpenEJB components running inside TomEE? I want to see the debug logging statements from the source code of org.apache.openejb.config.AutoConfig.

I tried modifying conf/logging.properties and adding a logging.properties file in WEB-INF\classes of my WAR but I can't find the right combination and I'm not even sure these are the right files to modify/create.

1
  • Thanks for the edit DataNucleus. I wanted to ask a different question at first involving JPA and forgot to remove the tag!
    – bernie
    May 16, 2012 at 13:48

1 Answer 1

4

add:

OpenEJB.startup.config.level=FINE

to conf/logging.properties

This doesn't work when launching the server from Eclipse for some reason.

To make it work in Eclipse, add this to the server's launch configuration:

 -Djava.util.logging.config.file="<put catalina.base path here>/conf/logging.properties"
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Source: http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_enable_the_JULI_logging_in_a_Tomcat_5.5_Server_instance.3F

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.