public class SoapMessageLoggingOutInterceptor
extends org.apache.cxf.interceptor.LoggingOutInterceptor
logSoapMessage(boolean) or extractSoapMessage(boolean).
If logSoapMessage(boolean) is set to true, the SoapMessage is logged to commandline respectively STOUT
If extractSoapMessage(boolean) is set to true, the BaseLogger is used to put the SoapMessage
into the Slf4j MDC (Mapped Diagnostic Context, see http://logback.qos.ch/manual/mdc.html} for more details)
with a Key directly suitable for processing with the ELK-Stack (Elasticsearch, Logstash, Kibana).
If both are set to true, the SoapMessage is logged to commandline AND put into Slf4j MDC for Elasticsearch processing.
| Constructor and Description |
|---|
SoapMessageLoggingOutInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
extractSoapMessage(boolean active) |
protected String |
formatLoggingMessage(org.apache.cxf.interceptor.LoggingMessage loggingMessage) |
protected void |
log(Logger logger,
String message) |
void |
logSoapMessage(boolean active) |
getLogger, handleMessagegetBinaryContentMediaTypes, getInMemThreshold, getLimit, getPrintWriter, isBinaryContent, isLoggingDisabledNow, isMultipartContent, isPrettyLogging, isShowBinaryContent, isShowMultipartContent, setBinaryContentMediaTypes, setInMemThreshold, setLimit, setOutputLocation, setPrettyLogging, setPrintWriter, setShowBinaryContent, setShowMultipartContent, transform, writePayload, writePayload, writePrettyPayloadprotected void log(Logger logger, String message)
log in class org.apache.cxf.interceptor.AbstractLoggingInterceptorprotected String formatLoggingMessage(org.apache.cxf.interceptor.LoggingMessage loggingMessage)
formatLoggingMessage in class org.apache.cxf.interceptor.LoggingOutInterceptorpublic void logSoapMessage(boolean active)
public void extractSoapMessage(boolean active)
Copyright © 2019. All rights reserved.