Package org.apache.felix.scr.impl.logger
Class ScrLoggerFactory
- java.lang.Object
-
- org.apache.felix.scr.impl.logger.ScrLoggerFactory
-
public final class ScrLoggerFactory extends java.lang.ObjectThis is used to retrieve the appropriate logger instance based on a specific log configuration
-
-
Constructor Summary
Constructors Modifier Constructor Description privateScrLoggerFactory()Non-instantiable
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScrLoggercreate(org.osgi.framework.BundleContext context, LogConfiguration config)Retrieves the logger based on the provided log configuration If the logging is disabled, theNoOpLoggeris used If the logging is enabled but the log extension is disabled, useScrLogManagerIf the logging is enabled and the log extension is also enabled, useExtLogManager
-
-
-
Method Detail
-
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
NoOpLoggeris 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
-
-