Package org.apache.felix.scr.impl.logger
Class LogServiceEnabledLogger
java.lang.Object
org.apache.felix.scr.impl.logger.AbstractLogger
org.apache.felix.scr.impl.logger.LogServiceEnabledLogger
- Direct Known Subclasses:
BundleLogger
,ScrLogger
This abstract class adds support for using a LogService
(or LoggerFactory for R7+).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InternalLogger
private static final String
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionLogServiceEnabledLogger
(ScrConfiguration config, org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the logger(package private) abstract InternalLogger
(package private) InternalLogger
Get the internal loggerMethods inherited from class org.apache.felix.scr.impl.logger.AbstractLogger
getBundleIdentifier, getConfiguration, getPrefix, isLogEnabled, log, log, setPrefix
-
Field Details
-
LOGSERVICE_CLASS
- See Also:
-
logServiceTracker
-
currentLogger
-
trackingCount
protected volatile int trackingCount
-
-
Constructor Details
-
LogServiceEnabledLogger
public LogServiceEnabledLogger(ScrConfiguration config, org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
close
public void close()Close the logger -
getLogger
InternalLogger getLogger()Description copied from class:AbstractLogger
Get the internal logger- Specified by:
getLogger
in classAbstractLogger
- Returns:
- The internal logger
-
getDefaultLogger
-