Use ROOT_LOGGER_NAME instead of null
Specification of log service does not allow for null logger names.
Previously the ROOT_LOGGER_NAME was used by SCR in this case.  This
restores that behavior.
@@ -58,7 +58,7 @@ abstract class LogServiceEnabledLogger extends AbstractLogger
else
{
this.currentLogger = new OSGiLogger(
- factory.getLogger(bundle, null, Logger.class));
+ factory.getLogger(bundle, Logger.ROOT_LOGGER_NAME, Logger.class));
}
this.trackingCount = this.loggingFactoryTracker.getTrackingCount();
}
