how to enable OpenEJB log
I am using Eclipse to create (Session Bean + MDB), deployed in OpenEJB. It works. Now how can I output the log debug info to console ? I need to add a log4j.properti开发者_高级运维es in the project or to change the OpenEJB server properties ?
Thanks.
You need to add log4j.properties to your classpath and add the following configuration to log the OPENEJB debug to the console.
log4j.category.OpenEJB = warn
log4j.category.OpenEJB.server = info
log4j.category.OpenEJB.startup = info
log4j.category.OpenEJB.startup.service = warn
log4j.category.OpenEJB.startup.config = info
log4j.category.OpenEJB.hsql = info
log4j.category.CORBA-Adapter = info
log4j.category.Transaction = warn
log4j.category.org.apache.activemq = error
log4j.category.org.apache.geronimo = error
log4j.category.openjpa = error
You can modify the logging by changing the Log Levels.
精彩评论