public Log getLog(String channel) { // no locking; ok if same log created multiple times LogImpl l = _logs.get(channel); if (l == null) { l = newLogImpl(); l.setChannel(channel); // TODO add to interface? Short lvl = _configuredLevels.get(shorten(channel)); l.setLevel(lvl == null ? _defaultLogLevel : lvl.shortValue()); _logs.put(channel, l); } return l; }
public Log getLog(String channel) { // no locking; ok if same log created multiple times LogImpl l = _logs.get(channel); if (l == null) { l = newLogImpl(); l.setChannel(channel); // TODO add to interface? Short lvl = _configuredLevels.get(shorten(channel)); l.setLevel(lvl == null ? _defaultLogLevel : lvl.shortValue()); _logs.put(channel, l); } return l; }
public Log getLog(String channel) { // no locking; ok if same log created multiple times LogImpl l = (LogImpl) _logs.get(channel); if (l == null) { l = newLogImpl(); l.setChannel(channel); Short lvl = (Short) _configuredLevels.get(shorten(channel)); l.setLevel(lvl == null ? _defaultLogLevel : lvl.shortValue()); _logs.put(channel, l); } return l; }
public Log getLog(String channel) { // no locking; ok if same log created multiple times LogImpl l = _logs.get(channel); if (l == null) { l = newLogImpl(); l.setChannel(channel); // TODO add to interface? Short lvl = _configuredLevels.get(shorten(channel)); l.setLevel(lvl == null ? _defaultLogLevel : lvl.shortValue()); _logs.put(channel, l); } return l; }