> >> So in short, the appender must be registered in the OSGi registry > >> using the org.ops4j.pax.logging.spi.PaxAppender interface and have a > >> service property named org.ops4j.pax.logging.appender.name. The value > >> of this property can be referenced using osgi:[value].
Hi, Guillaume, Thank you for this! Here is what I did: Created custom appender like this: public class CustomAppender implements PaxAppender { public void doAppend( PaxLoggingEvent event ) { System.err.println( "Event: " + event.getMessage() ); } } Registered the appender like this: final PaxAppender appender = new LinkinAppender(); final Dictionary<String, String> properties = new Hashtable<String, properties.put( PaxLoggingService.APPENDER_NAME_PROPERTY, "Custom" ); m_appenderRegistration = getBundleContext().registerService( PaxAppender.class.getName(), appender, properties ); Configured my properties file like this: log4j.rootLogger = osgi:Custom I even tried playing around with a few things like this: log4j.appender.Custom = org.ops4j.pax.logging.spi.PaxAppender and log4j.appender.Custom = com.exemple.CustomAppender However, no luck. The service is registered, and pax-logger does not throw any errors. But that's all I can say. Can you see what I'm doing wrong? Thank you! (By the way, your name sounds very French... where are you from?) =David.Leangen _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general