Class ScrLoggerFactory

java.lang.Object
org.apache.felix.scr.impl.logger.ScrLoggerFactory

public final class ScrLoggerFactory extends Object
This is used to retrieve the appropriate logger instance based on a specific log configuration
  • Constructor Details

    • ScrLoggerFactory

      private ScrLoggerFactory()
      Non-instantiable
  • Method Details

    • create

      public static ScrLogger create(org.osgi.framework.BundleContext context, LogConfiguration config)
      Retrieves the logger based on the provided log configuration
      • If the logging is disabled, the NoOpLogger is used
      • If the logging is enabled but the log extension is disabled, use ScrLogManager
      • If the logging is enabled and the log extension is also enabled, use ExtLogManager
      Parameters:
      context - the bundle context of the SCR bundle
      config - the log configuration
      Returns:
      the logger