public final class ReactorLogOsgiOptional extends java.lang.Object implements ReactorLogTarget
Constructor and Description |
---|
ReactorLogOsgiOptional(BundleContext bundleContext,
ReactorLogTarget backupLogTarget)
Implements default constructor for the optional OSGi logging service.
|
public ReactorLogOsgiOptional(BundleContext bundleContext, ReactorLogTarget backupLogTarget)
bundleContext
- This is the OSGi bundle context associated with the Reaction
bundle.backupLogTarget
- This is the backup logging target which will be used if the
optional OSGi log service is not available.public Logger getLogger(java.lang.String loggerId, java.lang.String loggerResources) throws java.util.MissingResourceException
ReactorLogTarget
getLogger
in interface ReactorLogTarget
loggerId
- This is the logger ID which is associated with the requested
message logger. This is a String value which will normally hold
the canonical name of the client class which is using the logger.loggerResources
- This is the name of a ResourceBundle which is to be used for
localising messages for this logger. May be null if none of the
messages require localisation.java.util.MissingResourceException
- This exception will be thrown if a set of logger resources have
been specified but cannot be found.