Class LogServiceImpl

java.lang.Object
org.slf4j.osgi.logservice.impl.LogServiceImpl
All Implemented Interfaces:
org.osgi.service.log.LogService

public class LogServiceImpl extends Object implements org.osgi.service.log.LogService
LogServiceImpl is a simple OSGi LogService implementation that delegates to a slf4j Logger.
Author:
John Conlon, Matt Bishop
  • Field Summary

    Fields inherited from interface org.osgi.service.log.LogService

    LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogServiceImpl(org.osgi.framework.Bundle bundle)
    Creates a new instance of LogServiceImpl.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    log(int level, String message)
     
    void
    log(int level, String message, Throwable exception)
     
    void
    log(org.osgi.framework.ServiceReference sr, int level, String message)
     
    void
    log(org.osgi.framework.ServiceReference sr, int level, String message, Throwable exception)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogServiceImpl

      public LogServiceImpl(org.osgi.framework.Bundle bundle)
      Creates a new instance of LogServiceImpl.
      Parameters:
      bundle - The bundle to create a new LogService for.
  • Method Details

    • log

      public void log(int level, String message)
      Specified by:
      log in interface org.osgi.service.log.LogService
    • log

      public void log(int level, String message, Throwable exception)
      Specified by:
      log in interface org.osgi.service.log.LogService
    • log

      public void log(org.osgi.framework.ServiceReference sr, int level, String message)
      Specified by:
      log in interface org.osgi.service.log.LogService
    • log

      public void log(org.osgi.framework.ServiceReference sr, int level, String message, Throwable exception)
      Specified by:
      log in interface org.osgi.service.log.LogService