this link show how to make a logger  and why it's useful to use the logger of
OSGi  : 
https://code.google.com/p/osgi-logging/wiki/UnderstandingTheOSGiLogging
<https://code.google.com/p/osgi-logging/wiki/UnderstandingTheOSGiLogging>  

How to run this on Apache Karaf ?

this is my featres.xml :
     <feature name='log2-bundle' version='1.0'>
        
<bundle>file:///C:/Users/Florian/Downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/bundles/log2/com.vogella.osgi.firstbundle.internal.bundleLogV6_1.0.0.201406091621.jar</bundle>
 
<bundle>file:///C:/Users/Florian/Downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/bundles/log2/testBundleLogV6-consoleLog_1.0.0.201406091852.jar</bundle>
 
<bundle>file:///C:/Users/Florian/Downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/bundles/log2/log.jar</bundle>
 </feature>




I have this error :
 karaf@root()> feature:install log2-bundle
Error executing command: Jar is not a bundle, no Bundle-SymbolicName
file:///C:/
Users/xxx/Downloads/apache-karaf-3.0.1/apache-karaf-3.0.1/deploy/bundles/log
2/log.jar
karaf@root()>





--
View this message in context: 
http://karaf.922171.n3.nabble.com/logging-and-karaf-how-to-do-it-tp4033438.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to