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:09:43 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 4b96a222a -> 51acda093


[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/51acda09
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/51acda09
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/51acda09

Branch: refs/heads/master
Commit: 51acda09390e47fd4c38a5cb645c4594fa3fca5c
Parents: 4b96a22
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:09:26 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/51acda09/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 5fb6b43..e2a1e32 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