public void setDefaultLimit(String lim) { _defaultLimit = Log.getLevel(lim); updateLimits(); }
/** * Do not log here, deadlock of LogWriter via rereadConfig(). */ private void parseLimits(Properties config, String recordPrefix) { _limits.clear(); if (config != null) { for (Map.Entry<Object, Object> e : config.entrySet()) { String key = (String) e.getKey(); // if we're filtering the records (e.g. logger.record.*) then // filter accordingly (stripping off that prefix for matches) if (recordPrefix != null) { if (key.startsWith(recordPrefix)) { key = key.substring(recordPrefix.length()); } else { continue; } } String val = (String) e.getValue(); LogLimit lim = new LogLimit(key, Log.getLevel(val)); //_log.debug("Limit found for " + name + " as " + val); if (!_limits.contains(lim)) _limits.add(lim); } } updateLimits(); }
updateLimits(); return; updateLimits();