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.
OSGI Pax logging
1k Views Asked by Nipun Talukdar At
2
There are 2 best solutions below
0
Sheena Artrip
On
pax logging just uses log4j as the implementation. So I would write a log4j appender to do this instead. here is a library which does this already, but I've never touched it. https://code.google.com/p/scribe-log4j/
Related Questions in OSGI
- Eclipse OSGI unsatisfied constraint
- How to run Master Server from Equinox OSGi console?
- How to start a clean publishing instance and sync everything including OSGi bundles?
- @Transactional with xml-defined bean not working. (OSGi)
- How can single instance of an OSGI factory configuration be read from Java in CQ
- OSGi Component's default configuration value contains escaped backslash
- Third party OSGi library dependency conflict
- Apache sling : org.apache.sling.api.resource.PersistenceException: Unable to create node at /var/discovery))
- OSGI compatible artifact for jaxb2-basics?
- Modules Integration and Security in spring
- How to set a system property for the log4j2 JUL adapter in an OSGi environment
- Avoid copying some packages to OSGi Bundle
- AEM as IDP( Identity Provider) for CRM using SAML
- OSGI+CDI: strange behaviour with system printers detecting
- Getting ClassNotFound for PaxExam Option class when running test
Related Questions in APACHE-FELIX
- How can single instance of an OSGI factory configuration be read from Java in CQ
- What is the difference between Apache Felix and Apache Tomcat
- Avoid copying some packages to OSGi Bundle
- How can I reference all components that implement a given interface?
- Build OSGI application with Maven
- How to store artifacts at targets using Apache ACE?
- How To Migrate From maven-bundle-plugin 2.5.3 to 3.0.0
- Dependency Manager commands not working after upgrading Servicemix from 5.4.0 to 6.1.2
- Apache Felix with Pax Web War Extender error starting bundle
- Is it possible to use wildcards in org.osgi.framework.system.packages.extra in Felix?
- Pax-Web Jetty-Bundle publishing Jersey App
- change made via felix console takes more precedence over apps and libs why?
- Interact with bundle in Apache Felix
- Getting a specific implementation from Felix
- Apache CXF/JAX-RS, Felix and Jetty
Related Questions in OSGI-FRAGMENT
- Accessing services from OSGi fragment bundles
- Is there a way to prioritize fragment dependencies?
- OSGI: Using code in another bundle from a fragment
- OSGI Pax logging
- Tycho cannot resolve fragment dependency on other fragment
- Use Spring-DM Extender
- OSGi fragment update versus bundle update?
- How to use OSGi fragments to contribute platform-dependent native code with the same filename?
- AspectJ LoadTimeWeaving on OSGI
- Replacing classes/resources with an OSGi fragment - possible without including a jar in the fragment?
- How to get the Bundle object which represents a fragment bundle?
- Patch/Override a .jsp file in /resources directory in OSGi bundles
- What is the alternative to PackageAdmin.getFragments
- Reflection with OSGI bundles, for Dependent jars
- Should OSGi fragments export packages contributed to their host?
Related Questions in PAX-RUNNER
- OSGI Pax logging
- Pax runner eclipse plugin updatesite
- Maven Pax Runner cannot parse provision file
- Logback include fragment in OSGi container
- Continuous deployment of OSGi-based application on jenkins
- System works fine using Pax-runner , but don't work with Karaf. Datastax exception. Pool is busy
- What's the maven SNAPSHOT dependency update policy in pax-exam?
- Configuring pax-logging in a native container with pax-exam
- How to give a repository url in karaf paxexam configuration
- pax-provision unable to load org/eclipse/core/runtime/adaptor/EclipseStarter class to run equinox
- How to profile the execution of an OSGi deployment?
- Maven-Pax-Plugin and Gemini Blueprint /Spring DM
- Is it possible to start pax-run without the Gogo shell?
- java.lang.AbstractMethodError/ClassCastException when creating integration test for osgi using felix, osgi and PaxRunner Framework
- Deploy war files in Apache Felix?
Related Questions in JBOSSFUSE
- Issue with JPA in JBoss Fuse 6.2
- who to create multiple instance of JBOSS Fuse 6.1
- JBoss Fuse container: Karaf or Wildfly
- Refactoring some legacy camel code, is this code unnecessary or am I missing something?
- Conditional uninstall of OSGi feature
- just install jboss-fuse but management console is not reachable
- Nmr installation on ServiceMix 4
- Fuse ESB: CXF message enrichment from intermediate service
- FUSE hibernate application throws No Session found for current thread exception
- JBoss Fuse JMX not working
- Where can I found the placeholder schema for camel?
- Jboss EAP 6.4 not excluding modules
- FUSE hibernate with CXF
- Karaf MSSQL not working
- Apache Camel Code Generation in JBoss
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.