private void internalInit() throws InitializationException
{
ResourceService props = getResources();
if (props == null)
{
throw new InitializationException("LoggingService failed to "
+ "get access to the properties for this service.");
}
//looking for default logger name
String defaultLoggerName = props.getString(LoggingConfig.DEFAULT);
//checking whether default logger is properly configured
if (defaultLoggerName == null)
{
throw new InitializationException("LoggingService can't find "
+ "default logger name in the configuration file.");
}
// Create default logger
loggers.put(defaultLoggerName, defaultLogger);
//checking whether default logger is properly configured
if (defaultLogger == null)
{
throw new InitializationException("LoggingService can't find "
+ "default logger in working loggers.");
}
}