Christian Schneider created CXF-6269:
----------------------------------------

             Summary: Logging interceptors should allow to switch logging 
on/off for individual rest resources
                 Key: CXF-6269
                 URL: https://issues.apache.org/jira/browse/CXF-6269
             Project: CXF
          Issue Type: Improvement
          Components: Core
    Affects Versions: 3.0.4
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 3.1.0


For SOAP requests/responses we determine a logger name like:
String logName = "org.apache.cxf.services." + serviceName + "."  + portName + 
"." + portTypeName;

This allows to switch logging on and off for individual SOAP services.

For REST we always use 
log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor or 
log4j.logger.org.apache.cxf.interceptor.LoggingInInterceptor.

We should also support a similar scheme for REST like for SOAP.

Proposal:
String logName = "org.apache.cxf.services." + endpointInfo.getName();
or namespace + "." + localname instead the getName.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to