java 如何打开 weblogic 的调试和跟踪日志记录?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3417810/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 01:44:48  来源:igfitidea点击:

How to turn on debug and trace logging for weblogic?

javaweblogic

提问by unmaskableinterrupt

I understand there are very many ways to do this- just not very clear to me which ones I should use. Some of the answers on google dont work and the docs on the site are murky to me. thanks

我知道有很多方法可以做到这一点——只是我不太清楚我应该使用哪些方法。谷歌上的一些答案不起作用,网站上的文档对我来说是模糊的。谢谢

回答by Pierluigi Vernetto

the quickest way is to specify a JVM System property of the type -Dweblogic.debug.YOURSUBSYSTEM and also -Dweblogic.log.StdoutSeverity="Debug"

最快的方法是指定类型 -Dweblogic.debug.YOURSUBSYSTEM 和 -Dweblogic.log.StdoutSeverity="Debug" 的 JVM 系统属性

or in alternative set it from the WebLogic console in the server/debug/weblogic/YOURSUBSYSTEM and remember to set the log severity level to Debug, for the server you are troubleshooting

或者从 WebLogic 控制台中的 server/debug/weblogic/YOURSUBSYSTEM 中设置它,并记住将日志严重性级别设置为 Debug,对于您要进行故障排除的服务器

回答by Musannif Zahir

This differs on the version of WebLogic you are using. For >= 9.2, click on the Server and go to the Debug tab.

这因您使用的 WebLogic 版本而异。对于 >= 9.2,单击服务器并转到调试选项卡。

Here you can expand the trees and enable very detailed and specific logging. Hope that helps.

您可以在此处展开​​树并启用非常详细和特定的日志记录。希望有帮助。