if (LogFactory.getLogFactory() == null) {
return;
}
Iterator loggers = LogFactory.getLogFactory().loggers();
this.loggers = new HashMap();
LogAdapter rootLogger = LogFactory.getLogFactory().getRootLogger();
if (rootLogger != null) {
snmp4jLogLoggerEntry.addRow(createLoggerRow(1, rootLogger,
getStorageType(rootLogger)));
}
while (loggers.hasNext()) {
LogAdapter l = (LogAdapter) loggers.next();
int i = 1;
Integer index = (Integer) loggerNames2Index.get(l.getName());
if (index == null) {
i = nextLoggerIndex++;
loggerNames2Index.put(l.getName(), new Integer(i));
}
else {
i = index.intValue();
}
this.loggers.put(new Integer(i), l);