Skip to content

Commit

Permalink
[CXF-7354] Using the marker to log the events, patch from David J. M.…
Browse files Browse the repository at this point in the history
… Karlsen applied, This closes #272
  • Loading branch information
sberyozkin committed May 9, 2017
1 parent ea68b9a commit b9c9e06
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import org.slf4j.MarkerFactory;

public class Slf4jEventSender implements LogEventSender {

Expand All @@ -53,7 +54,8 @@ public void send(LogEvent event) {
put(keys, "FullContentFile", event.getFullContentFile().getAbsolutePath());
}
put(keys, "Headers", event.getHeaders().toString());
log.info(getLogMessage(event));
log.info(MarkerFactory.getMarker(event.getServiceName() != null ? "SOAP" : "REST"),
getLogMessage(event));
} finally {
for (String key : keys) {
MDC.remove(key);
Expand Down

0 comments on commit b9c9e06

Please sign in to comment.