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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default file name when a value is not supplied in the configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove the logger configuration for the supplied configuration service@NotNull StringgetName()Descriptive name of this factoryvoidupdated(@NotNull String pid, @NotNull Dictionary<String, ?> configuration) Update the logger configuration for the supplied configuration service
-
Field Details
-
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
Descriptive name of this factory- Specified by:
getNamein interfaceorg.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.ConfigurationExceptionUpdate the logger configuration for the supplied configuration service- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedServiceFactory- Parameters:
pid- the service identifier for the serviceconfiguration- the configuration properties to apply- Throws:
org.osgi.service.cm.ConfigurationException
-
deleted
Remove the logger configuration for the supplied configuration service- Specified by:
deletedin interfaceorg.osgi.service.cm.ManagedServiceFactory- Parameters:
pid- the service identifier for the service
-