Class 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
    • Constructor Detail

      • 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 Detail

      • 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