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 <[email protected]> Authored: Fri Nov 4 12:05:01 2016 +0100 Committer: Christian Schneider <[email protected]> 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.
