是否可以使用位于 JBOSS_HOME 外部的 jboss-log4j.xml?

发布于 2024-08-21 21:23:43 字数 76 浏览 6 评论 0原文

是否可以将 JBoss 5.x 配置为使用位于 JBOSS_HOME 外部的 jboss-log4j.xml? 如果是 - 应该改变什么?

Is it possible to configure JBoss 5.x to use jboss-log4j.xml located outside from JBOSS_HOME?
If yes - what should be changed?

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

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

发布评论

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

评论(1

铁憨憨 2024-08-28 21:23:43

conf/jboss-service.xml 文件包含对 jboss-log4j.xml 的引用:

<mbean code="org.jboss.logging.Log4jService"
  name="jboss.system:type=Log4jService,service=Logging"
  xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
  <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>      

我不确定 resource:jboss-log4j.xml< /code> 的意思是准确的,但是 ConfigurationURL 听起来像是您可以传入 file:// 样式的 URL,指定外部 log4j 文件。

The conf/jboss-service.xml file contains the reference to jboss-log4j.xml:

<mbean code="org.jboss.logging.Log4jService"
  name="jboss.system:type=Log4jService,service=Logging"
  xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
  <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>      

I'm not sure what resource:jboss-log4j.xml means, exactly, but ConfigurationURL sounds like something you could pass in a file://-style URL to, specifying an external log4j file.

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