On Wed February 18 2009 3:02:07 pm Laurent Perez wrote: > Hi > > I'm using a CXF 2.1.3 client to call several web services, definitions > and configurations are done via a Spring context file. > I'd like to be able to log WS exchanges in different log files : one > file per web service. > > I managed to log all services calls within a single log file by using > LoggingIn/OutInterceptors in DEBUG mode within log4j, but so far I > don't understand yet how to split the logging per web service conduit. > > - Is it doable within CXF ?
Kind of, but not easily. The LoggingIn/OutInterceptors can be constructed with a PrintStream object which would be used to output the logs. Thus, using Spring, you COULD create a PrintSteam per service and create unique interceptors into each of the services. A bit complex though. > - Does log4j support routing to different appenders given a pattern > within the to-be-logged string ? Not that I know of. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
