在 Jboss 上启用 Axis 2 调试日志
我想知道如何在 JBoss 上使用 Axis 2 启用调试级别日志记录。我的 Web 服务作为 .aar 文件安装在 Axis 2 Web 应用程序中。我尝试将以下内容添加到 jboss-log4j.xml:
<category name="org.apache.axis2">
<priority value="DEBUG"/>
</category>
但这没有向 server.log 文件添加任何内容。我在很多地方都读到过,Axis2 将日志堆叠在一个名为 axis2.log 的文件中,该文件可以在 Axis2 的工作目录中找到,但我不太明白什么是“Axis 2 的工作目录”?
我还想知道如何在 Axis 2 客户端上启用日志记录,这应该告诉我 Axis 如何序列化和反序列化请求/响应。我怎样才能做到这一点?我在某处读到我应该配置 client-conf.wsdd,但我不知道该把它放在哪里。
I would like to know how can I enable debug-level logging with Axis 2 on JBoss. My web service is installed as an .aar file in the Axis 2 web application. I have tried to add the following to jboss-log4j.xml:
<category name="org.apache.axis2">
<priority value="DEBUG"/>
</category>
But this didn't add anything to the server.log file. I have read it in many places that Axis2 stacks the logs in a file called axis2.log which can be found in the working directory of Axis2, but I didn't quite understand what's "Axis 2's working directory" ?
I would also like to know how to enable logging on an Axis 2 client which should tell me how Axis is serializing and deserializing requests/responses. How can I achieve that? I read it somewhere that I should configure a client-conf.wsdd, but I didn't know where to put it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试编辑 log4j.properties 文件,该文件可以在 WEB-INF/classes 文件夹中找到。对于客户端,您需要将 log4j.properties 文件添加到类补丁中并相应地设置属性。
try editing the log4j.properties file which can find at the WEB-INF/classes folder. For client side you need to add a log4j.properties file to a class patch and set the properties accordingly.
将以下内容添加到conf文件夹中的jboss-log4j.xml文件中,然后重新启动Jboss启用调试日志,这些日志被附加到日志文件夹中的server.log文件中:
Adding the following to the jboss-log4j.xml file found in the conf folder, and then restarting Jboss enabled the debug logs, which were appended to the server.log file in the log folder: