我的Java EE 6应用程序使用带回送功能的slf4j作为记录框架. 现在,我想将OpenJpa的SQL跟踪添加到我的日志文件中. OpenJpa文档说,我可以为此使用参数:
My Java EE 6 application uses slf4j with logback as logging framework. Now I want to add the SQL traces of OpenJpa to my log files. The OpenJpa-Documentation says, I can use a parameter to this:
<property name="openjpa.Log" value="slf4j"/>我将WebSphere Application Server v8.0.0.1用作Java EE容器.如果我将应用程序部署到服务器,则此参数不会更改任何内容.我可以在WebSphere Admin Console中更改日志级别,这可以正常工作.但是a不能绕过OpenJpa登录到我的slf4j框架.
I use the WebSphere Application Server v8.0.0.1 as Java EE container. If I deploy my application to the server, this parameter does not change anything. I can change log levels in WebSphere Admin Console and this works fine. But a cannot bypass the OpenJpa logging to my slf4j framework.
有人使用这样的配置并解决了问题吗?
Does anyone uses such configuration and solved the problem?
顺便说一句.我知道,InformationCenter-Article publib.boulder.ibm/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Finfo %2Fae%2Fae%2Ftejb_jpatroubleshoot.html 说,该参数将被忽略,但一切都应该可行,是吧?
Btw. I know, that the InformationCenter-Article publib.boulder.ibm/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Finfo%2Fae%2Fae%2Ftejb_jpatroubleshoot.html says, that the parameter will be ignored, but everything should be possible, eh?
推荐答案我解决了.
有四件事要做:
更多推荐
在WebSphere上使用slf4j进行OpenJPA日志记录
发布评论