0

我正在使用 Eclipse 创建(Session Bean + MDB),部署在 OpenEJB 中。有用。现在如何将日志调试信息输出到控制台?我需要在项目中添加 log4j.properties 或更改 OpenEJB 服务器属性?

谢谢。

4

1 回答 1

0

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.

于 2011-05-31T22:43:13.370 回答