Search code examples
osgiapache-felixosgi-fragmentpax-runnerjbossfuse

OSGI Pax logging


I want to write a custom appender which will collect all the logs coming to Fuse.log in Fuse container and relay them over Scribe to a central log store. I want to add a event listener for that in the container. But I couldn't figure out how I can do that. I went through the PAX logging code. But couldn't figure out. Any suggestions greatly appreciated.


Solution

  • I wrote once a blog post about this, it can be found at my blog. Basically you just need to create your appender, the tricky part is in adding it to pax-logging in the container via a fragment bundle.