You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by cs...@apache.org on 2017/07/10 15:42:52 UTC

karaf-decanter git commit: [KARAF-5237] Document how to use CXF LoggingFeature with decanter

Repository: karaf-decanter
Updated Branches:
  refs/heads/master e51070d1d -> 261b10d98


[KARAF-5237] Document how to use CXF LoggingFeature with decanter


Project: http://git-wip-us.apache.org/repos/asf/karaf-decanter/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-decanter/commit/261b10d9
Tree: http://git-wip-us.apache.org/repos/asf/karaf-decanter/tree/261b10d9
Diff: http://git-wip-us.apache.org/repos/asf/karaf-decanter/diff/261b10d9

Branch: refs/heads/master
Commit: 261b10d9805e1f6c07b10e948a26fb009da5e709
Parents: e51070d
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Mon Jul 10 17:42:47 2017 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Mon Jul 10 17:42:47 2017 +0200

----------------------------------------------------------------------
 manual/src/main/asciidoc/user-guide/collectors.adoc | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/261b10d9/manual/src/main/asciidoc/user-guide/collectors.adoc
----------------------------------------------------------------------
diff --git a/manual/src/main/asciidoc/user-guide/collectors.adoc b/manual/src/main/asciidoc/user-guide/collectors.adoc
index 0b49c85..7dcb32b 100644
--- a/manual/src/main/asciidoc/user-guide/collectors.adoc
+++ b/manual/src/main/asciidoc/user-guide/collectors.adoc
@@ -54,6 +54,14 @@ log4j.rootLogger = DEBUG, out, osgi:DecanterLogCollectorAppender, osgi:VmLogAppe
 
 =====================================================================
 
+==== CXF Logging feature integration
+
+The link:http://cxf.apache.org/docs/message-logging.html[CXF message logging] nicely integrates with Decanter. Simply add the link:https://github.com/apache/cxf/blob/master/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/LoggingFeature.java[org.apache.cxf.ext.logging.LoggingFeature] to your service.
+
+This will automatically log the messages from all clients and endpoints to slf4j. All meta data can be found in the MDC attributes. The message logging can be switched on/off per service using the org.ops4j.pax.logging.cfg.
+
+When using with Decanter make sure you enable the log collector to actually process the message logs.
+
 ==== Log Socket
 
 The Decanter Log Socket Collector is an event driven collector. It creates a socket, waiting for incoming event. The expected