| 208 | } |
| 209 | |
| 210 | public synchronized void add(final LogWriterConfig config) { |
| 211 | assert !configured; |
| 212 | final int index = scopeConfigMap.keyIndex(config.getScope()); |
| 213 | ScopeConfiguration scopeConf; |
| 214 | if (index > -1) { |
| 215 | scopeConfigMap.putAt(index, config.getScope(), scopeConf = new ScopeConfiguration(LogLevel.MAX)); |
| 216 | scopeConfigs.add(scopeConf); |
| 217 | } else { |
| 218 | scopeConf = scopeConfigMap.valueAtQuick(index); |
| 219 | } |
| 220 | scopeConf.add(config); |
| 221 | } |
| 222 | |
| 223 | public synchronized void bind() { |
| 224 | if (configured) { |