cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7354] Using the marker to log the events, patch from David J. M. Karlsen applied, This closes #272
Date Tue, 09 May 2017 10:11:16 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes ea68b9ad9 -> b9c9e063b


[CXF-7354] Using the marker to log the events, patch from David J. M. Karlsen applied, This
closes #272


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b9c9e063
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b9c9e063
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b9c9e063

Branch: refs/heads/3.1.x-fixes
Commit: b9c9e063be900ea321cbbc8ff8b637b1185a1d7c
Parents: ea68b9a
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue May 9 11:09:26 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue May 9 11:11:04 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b9c9e063/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java
index ebeb784..95f4684 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/slf4j/Slf4jEventSender.java
@@ -28,6 +28,7 @@ import org.apache.cxf.ext.logging.event.LogEventSender;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.slf4j.MDC;
+import org.slf4j.MarkerFactory;
 
 public class Slf4jEventSender implements LogEventSender {
 
@@ -53,7 +54,8 @@ public class Slf4jEventSender implements LogEventSender {
                 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);


Mime
View raw message