Class LoggerManagedServiceFactory

java.lang.Object
org.apache.sling.commons.log.logback.internal.config.LogConfigurator
org.apache.sling.commons.log.logback.internal.config.LoggerManagedServiceFactory
All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory

public class LoggerManagedServiceFactory extends LogConfigurator implements org.osgi.service.cm.ManagedServiceFactory
Factory for non-global logging configuration services
  • Field Details

    • LOG_FILE_DEFAULT

      public static final String LOG_FILE_DEFAULT
      The default file name when a value is not supplied in the configuration
      See Also:
  • Constructor Details

    • LoggerManagedServiceFactory

      public LoggerManagedServiceFactory()
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Descriptive name of this factory
      Specified by:
      getName in interface org.osgi.service.cm.ManagedServiceFactory
      Returns:
      the name for the factory
    • updated

      public void updated(@NotNull @NotNull String pid, @NotNull @NotNull Dictionary<String,?> configuration) throws org.osgi.service.cm.ConfigurationException
      Update the logger configuration for the supplied configuration service
      Specified by:
      updated in interface org.osgi.service.cm.ManagedServiceFactory
      Parameters:
      pid - the service identifier for the service
      configuration - the configuration properties to apply
      Throws:
      org.osgi.service.cm.ConfigurationException
    • deleted

      public void deleted(@NotNull @NotNull String pid)
      Remove the logger configuration for the supplied configuration service
      Specified by:
      deleted in interface org.osgi.service.cm.ManagedServiceFactory
      Parameters:
      pid - the service identifier for the service