cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject cxf-dosgi git commit: Document how to use the new logging intent
Date Fri, 04 Nov 2016 11:05:08 GMT
Repository: cxf-dosgi
Updated Branches:
  refs/heads/master 869956a94 -> fd81aa94b


Document how to use the new logging intent


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

Branch: refs/heads/master
Commit: fd81aa94bafb80752e815c8419530646e9221090
Parents: 869956a
Author: Christian Schneider <chris@die-schneider.net>
Authored: Fri Nov 4 12:05:01 2016 +0100
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Fri Nov 4 12:05:01 2016 +0100

----------------------------------------------------------------------
 samples/rest/README.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-dosgi/blob/fd81aa94/samples/rest/README.md
----------------------------------------------------------------------
diff --git a/samples/rest/README.md b/samples/rest/README.md
index e46b2e4..c288377 100644
--- a/samples/rest/README.md
+++ b/samples/rest/README.md
@@ -40,3 +40,20 @@ task:add 4 Mytask
 task:list
 ```
 
+### Add logging intent
+
+Starting with CXF 3.1.8 the CXF logging feature is exported as an intent by
+default this makes it very easy to add logging to the rest example.
+
+```
+feature:install cxf-features-logging
+config:property-set -p TaskResource service.exported.intents logging
+endpoint http://localhost:8181/cxf/tasks
+```
+
+This installs the CXF logging feature and adds the logging intent to the
+rest sample component. The command endpoint should then show that the intent
+logging is applied. 
+
+Any http requests to the service should now show as a logging message in the
+karaf log.


Mime
View raw message