Class PaxAppenderProxy

    • Field Summary

      • Fields inherited from class org.osgi.util.tracker.ServiceTracker

        context, filter
    • Constructor Summary

      Constructors 
      Constructor Description
      PaxAppenderProxy​(org.osgi.framework.BundleContext bundleContext, String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.osgi.framework.Filter createFilter​(org.osgi.framework.BundleContext bundleContext, String name)
      Filter in the form of (&(objectClass=org.ops4j.pax.logging.spi.PaxAppender)(org.ops4j.pax.logging.appender.name=NAME)), where NAME comes from osgi: prefixed references from logging configuration.
      void doAppend​(PaxLoggingEvent event)
      Log in Appender specific way.
      • Methods inherited from class org.osgi.util.tracker.ServiceTracker

        addingService, close, getService, getService, getServiceReference, getServiceReferences, getServices, getServices, getTracked, getTrackingCount, isEmpty, modifiedService, open, open, remove, removedService, size, waitForService
    • Constructor Detail

      • PaxAppenderProxy

        public PaxAppenderProxy​(org.osgi.framework.BundleContext bundleContext,
                                String name)
    • Method Detail

      • createFilter

        public static org.osgi.framework.Filter createFilter​(org.osgi.framework.BundleContext bundleContext,
                                                             String name)
        Filter in the form of (&(objectClass=org.ops4j.pax.logging.spi.PaxAppender)(org.ops4j.pax.logging.appender.name=NAME)), where NAME comes from osgi: prefixed references from logging configuration.
        Parameters:
        bundleContext -
        name -
        Returns:
      • doAppend

        public void doAppend​(PaxLoggingEvent event)
        Description copied from interface: PaxAppender
        Log in Appender specific way. When appropriate, Loggers will call the doAppend method of appender implementations in order to log.
        Specified by:
        doAppend in interface PaxAppender
        Parameters:
        event - The PaxLoggingEvent that has occurred.