Package org.apache.felix.scr.impl.logger
Class ScrLoggerFactory
java.lang.Object
org.apache.felix.scr.impl.logger.ScrLoggerFactory
This is used to retrieve the appropriate logger instance based on
a specific log configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrLogger
create
(org.osgi.framework.BundleContext context, LogConfiguration config) Retrieves the logger based on the provided log configuration If the logging is disabled, theNoOpLogger
is used If the logging is enabled but the log extension is disabled, useScrLogManager
If the logging is enabled and the log extension is also enabled, useExtLogManager
-
Constructor Details
-
ScrLoggerFactory
private ScrLoggerFactory()Non-instantiable
-
-
Method Details
-
create
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 bundleconfig
- the log configuration- Returns:
- the logger
- If the logging is disabled, the
-