Class Logger

  • All Implemented Interfaces:
    LoggerFactory, LogService, org.osgi.util.tracker.ServiceTrackerCustomizer

    public class Logger
    extends org.osgi.util.tracker.ServiceTracker
    implements LogService

    This Logger class represents ServiceTracker for LogService. It provides a simple mechanism for interacting with the log service.

    See Also:
    LogService, ServiceTracker
    • Constructor Summary

      Constructors 
      Constructor Description
      Logger​(org.osgi.framework.BundleContext context)
      Constructs new Logger(ServiceTracker for LogService).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log​(int level, java.lang.String message)
      Logs a message.
      void log​(int level, java.lang.String message, java.lang.Throwable exception)
      Logs a message with an exception.
      void log​(org.osgi.framework.ServiceReference ref, int level, java.lang.String message)
      Logs a message associated with a specific ServiceReference object.
      void log​(org.osgi.framework.ServiceReference ref, int level, java.lang.String message, java.lang.Throwable exception)
      Logs a message with an exception associated and a ServiceReference object.
      • 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait