use of com.canoo.platform.logging.DolphinLoggerConfiguration in project dolphin-platform by canoo.
the class DolphinLoggerFactory method getLogger.
@Override
public synchronized Logger getLogger(final String name) {
if (!configured.get()) {
configure(new DolphinLoggerConfiguration());
}
final DolphinLogger logger = this.loggerMap.get(name);
if (logger != null) {
return logger;
} else {
final Level loggerLevel = configuration.getLevelFor(name);
final DolphinLogger newInstance = new DolphinLogger(this, name, bridges, loggerLevel);
final DolphinLogger oldInstance = this.loggerMap.putIfAbsent(name, newInstance);
return oldInstance == null ? newInstance : oldInstance;
}
}
Aggregations