Logging JPA SQL with Weblogic 10.3

大憨熊 提交于 2019-11-30 23:08:04

From the OTN Discussion forum here are the steps :

  • Log into the weblogic console
  • Lock and Edit the session
  • Click Environment | Servers
  • Select the server you wish to monitor/debug
  • Click the Debug tab
  • expand the weblogic tree and select the JPA node
  • Click the enable button
  • Activate the changes.

It might depend on the version of WLS you have. I understand that there were some issues if you've downloaded a newer version of OpenJPA and are using it with WLS.

WebLogic issues aside, the configuration string you posted looks a bit off. Did you intend to use something like this (added in SQL=TRACE):

<property name="openjpa.Log" 
                value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/>

For Weblogic 10.3.3, there's some more steps:

  • Log into the weblogic console
  • Lock and Edit the session
  • Click Environment | Servers
  • Select the server you wish to monitor/debug
  • Click the Debug tab, expand the weblogic tree and select the JPA node
  • Click the enable button
  • Activate the changes at the bottom of the page
  • Now click the Logging Tab
  • At the bottom of the page, click Advanced
  • Under Message destination(s) panel, change Severity Level from Standard Out to Debug
  • Save your changes and restart server
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!