public class LoggingFeature extends DelegatingFeature<LoggingFeature.Portable>
]]>
| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingFeature.Portable |
delegateenabled| Constructor and Description |
|---|
LoggingFeature() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryContentMediaTypes(String mediaTypes)
Add additional binary media types to the default values for both logging interceptors
Content for these types will not be logged.
|
void |
addInBinaryContentMediaTypes(String mediaTypes)
Add additional binary media types to the default values in the LoggingInInterceptor.
|
void |
addOutBinaryContentMediaTypes(String mediaTypes)
Add additional binary media types to the default values in the LoggingOutInterceptor.
|
void |
addSensitiveElementNames(Set<String> sensitiveElementNames)
Sets list of XML or JSON elements containing sensitive information to be masked.
|
void |
addSensitiveProtocolHeaderNames(Set<String> sensitiveProtocolHeaderNames)
Sets list of protocol headers containing sensitive information to be masked.
|
void |
setInMemThreshold(long inMemThreshold) |
void |
setInSender(LogEventSender s) |
void |
setLimit(int limit) |
void |
setLogBinary(boolean logBinary) |
void |
setLogMultipart(boolean logMultipart) |
void |
setOutSender(LogEventSender s) |
void |
setPrettyLogging(boolean prettyLogging) |
void |
setSender(LogEventSender sender) |
void |
setVerbose(boolean verbose) |
getDelegate, initialize, initialize, initialize, initialize, initializeProvider, setDelegatedoInitializeProvider, getActive, getID, isEnabledpublic void setLimit(int limit)
public void setInMemThreshold(long inMemThreshold)
public void setSender(LogEventSender sender)
public void setInSender(LogEventSender s)
public void setOutSender(LogEventSender s)
public void setPrettyLogging(boolean prettyLogging)
public void setLogBinary(boolean logBinary)
public void setLogMultipart(boolean logMultipart)
public void setVerbose(boolean verbose)
public void addInBinaryContentMediaTypes(String mediaTypes)
<bean id="loggingFeature" class="org.apache.cxf.ext.logging.LoggingFeature"> <property name="addInBinaryContentMediaTypes" value="audio/mpeg;application/zip"/> </bean>
mediaTypes - list of mediaTypes. symbol ; - delimeterpublic void addOutBinaryContentMediaTypes(String mediaTypes)
<bean id="loggingFeature" class="org.apache.cxf.ext.logging.LoggingFeature"> <property name="addOutBinaryContentMediaTypes" value="audio/mpeg;application/zip"/> </bean>
mediaTypes - list of mediaTypes. symbol ; - delimeterpublic void addBinaryContentMediaTypes(String mediaTypes)
<bean id="loggingFeature" class="org.apache.cxf.ext.logging.LoggingFeature"> <property name="addBinaryContentMediaTypes" value="audio/mpeg;application/zip"/> </bean>
mediaTypes - list of mediaTypes. symbol ; - delimeterpublic void addSensitiveElementNames(Set<String> sensitiveElementNames)
sensitiveElementNames: {password}
Initial logging statement: my user my secret password
Result logging statement: my user XXXX
sensitiveElementNames - set of sensitive element names to be replacedpublic void addSensitiveProtocolHeaderNames(Set<String> sensitiveProtocolHeaderNames)
sensitiveHeaders: {Authorization}
Initial logging statement: {Authorization=Basic QWxhZGRpbjpPcGVuU2VzYW1l}
Result logging statement: {Authorization=XXX}
sensitiveProtocolHeaderNames - set of sensitive element names to be replacedApache CXF