如何使用 Glassfish 记录 Web 服务调用?
我想知道如何配置 Glassfish 服务器来记录 Web 服务调用?
我特别想要: - 日志将包含调用者的地址, - 并且日志将写入磁盘上的文件中。
谢谢 !
I would like to know how to configure a Glassfish server for logging the webservice calls ?
I would like especially :
- that the log will contain the adress of the caller,
- and that the log will be written in a file on the disk.
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对glassfish了解不多,但我在tomcat上用axis2服务做过类似的事情。为了创建此类日志文件,我们创建了使用 log4j 来记录请求者信息的自定义流入处理程序。我怀疑 glassfish 是否会内置您想要的日志记录,您可能需要实现自己的自定义日志记录解决方案。您使用什么来开发您的服务? IE axis2、CXF 等...
I don't know much about glassfish, but I've done similar things with axis2 services on tomcat. In order to create such log files we created custom inflow handlers that used log4j to log requester information. I doubt that glassfish would have your desired logging built into it, you're probably going to need to implement your own custom logging solution. What are you using to develop your services? IE axis2, CXF, etc...