weblogic10.x中如何从NonCatalogLogger获取日志

发布于 2024-09-03 16:33:55 字数 94 浏览 2 评论 0原文

d party lib 并发现它通过 weblogic.logging.NonCatalogLogger 跟踪其状态,但我在日志中没有看到任何字符串。我如何接收这些类的日志?

d party lib and found that it traces it state via weblogic.logging.NonCatalogLogger but I don't see any string in log. How can I receive log from these classes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戈亓 2024-09-10 16:33:55

如果您在 Weblogic 服务器中运行,则 NonCatalogLogger 会打印到 weblogic 服务器日志。有关详细信息,请参阅此处

如果这没有反映在服务器日志中,请检查 Java 类是否在 Logger.info() 或 Logger.debug() 处进行日志记录,并确保管理控制台中的日志级别也设置为相同的 DEBUG 或 INFO。
它可能被设置为“错误”或“警告”。

如果您想在正在运行的 weblogic 服务器之外使用 NonCatalogLogger:

按照 http://download.oracle.com/docs/cd/E13222_01/wls/docs100/i18n/writing.html#wp1145513 和 API http://download.oracle.com/docs/cd/E12840_01/wls /docs103/javadocs/weblogic/logging/NonCatalogLogger.html

您必须使用 -Dweblogic.log.FileName=logfilename 初始化 JVM

If you are running within Weblogic server, the NonCatalogLogger prints to the weblogic server logs. See here for more.

If this is not reflecting in the server logs, check whether the Java class is logging at Logger.info() or Logger.debug() and ensure the Log Level in admin console is also set at the same DEBUG or INFO.
It might be set at ERROR or WARNING.

If you want to use the NonCatalogLogger outside of a running weblogic server:

As per http://download.oracle.com/docs/cd/E13222_01/wls/docs100/i18n/writing.html#wp1145513 and the API at http://download.oracle.com/docs/cd/E12840_01/wls/docs103/javadocs/weblogic/logging/NonCatalogLogger.html

you have to initialize your JVM with -Dweblogic.log.FileName=logfilename

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文