You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by pi...@apache.org on 2012/02/21 05:28:32 UTC

svn commit: r1291590 - /karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf

Author: pieber
Date: Tue Feb 21 04:28:32 2012
New Revision: 1291590

URL: http://svn.apache.org/viewvc?rev=1291590&view=rev
Log:
[KARAF-1214] Applied fix to logging documentation; thx to Raman Gupta

this patch corrects the description of how to configure fragment bundles
for the pax logging service in karaf.

Signed-off-by: Andreas Pieber <an...@gmail.com>
(cherry picked from commit 3ba37d4e5f40c62508ce2cc7eed71ec62799d397)

Signed-off-by: Andreas Pieber <an...@gmail.com>

Modified:
    karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf

Modified: karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf?rev=1291590&r1=1291589&r2=1291590&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf (original)
+++ karaf/branches/karaf-2.2.x/manual/src/main/webapp/users-guide/logging-system.conf Tue Feb 21 04:28:32 2012
@@ -1,4 +1,3 @@
-
 h1. Logging system
 
 Karaf provides a powerful logging system based on [OPS4j Pax Logging|http://team.ops4j.org/wiki/display/paxlogging/Pax+Logging]. 
@@ -169,4 +168,10 @@ Bundle-SymbolicName: org.mydomain.myappe
 Fragment-Host: org.ops4j.pax.logging.pax-logging-service
 ...
 
-Now you can use the appender in your log4j config file like shown in the config examples above.
+Copy the new appender fragment into the ${karaf.home}/system directory. Karaf uses a virtual maven repository to access resources in the system
+directory, so the jar path should use the standard maven groupId/artifactId/version/ convention, where the groupId is a directory structure.
+
+Edit ${karaf.home}/etc/startup.properties and add the new fragment bundle to the list before the pax-logging-service bundle.
+
+Restart karaf with a clean run to reload the system bundles, and now you can use the appender in your log4j config file like shown in the config
+examples above.