我在使用Apache CXF framework. 我想将服务器错误记录到外部文件而不是终端。服务器的一段代码;
server= new JaxwsNotificationBroker("Hello",..);
server.setAddress("http://localhost:" + brokerPort + "/wsn/NotificationBroker");
我试过这个来记录;
server.getInInterceptors().add(new LoggingInInterceptor());
server.getOutInterceptors().add(new LoggingOutInterceptor());
但它给出了错误The method getInInterceptors() is undefined for the type JaxwsNotificationBroker。
有什么方法可以记录错误JaxwsNotificationBroker吗?
谢谢