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:26:52 UTC

svn commit: r1291589 - /karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf

Author: pieber
Date: Tue Feb 21 04:26:52 2012
New Revision: 1291589

URL: http://svn.apache.org/viewvc?rev=1291589&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>

Modified:
    karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf

Modified: karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf
URL: http://svn.apache.org/viewvc/karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf?rev=1291589&r1=1291588&r2=1291589&view=diff
==============================================================================
--- karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf (original)
+++ karaf/trunk/manual/src/main/webapp/users-guide/logging-system.conf Tue Feb 21 04:26:52 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]. 
@@ -174,4 +173,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.