A wrapper around the OSGi log service API is included for situations where the Reaction framework is being run in an OSGi context. The wrapper is designed for use when the OSGi log service is declared as an optional import package for the Reaction bundle. This means that the OSGi logging package must be available when the Reaction bundle is resolved in order for it to be used.
If the OSGi logging service is not available on startup - or subsequently becomes unavailable during operation - logging is redirected to a backup log service instead. The backup log service to be used is specified as part of the constructor for the OSGi log service wrapper and will typically be an instantiation of the console output logger. The OSGi log service wrapper component is present in the OSGi package as ReactorLogOsgiOptional.