/** protected by config's audit lock */ private void writeLogItem(AuditLogItem item) throws IOException{ Set<String> formatterNames = new HashSet<String>(); try { for (AuditLogHandler handler : config.getHandlersForLogging()) { formatterNames.add(handler.getFormatterName()); handler.writeLogItem(item); } } finally { for (String formatterName : formatterNames) { config.getFormatter(formatterName).clear(); } } }
/** protected by config's audit lock */ private void writeLogItem(AuditLogItem item) throws IOException{ Set<String> formatterNames = new HashSet<String>(); try { for (AuditLogHandler handler : config.getHandlersForLogging()) { formatterNames.add(handler.getFormatterName()); handler.writeLogItem(item); } } finally { for (String formatterName : formatterNames) { config.getFormatter(formatterName).clear(); } } }
/** protected by config's audit lock */ private void writeLogItem(AuditLogItem item) throws IOException{ Set<String> formatterNames = new HashSet<String>(); try { for (AuditLogHandler handler : config.getHandlersForLogging()) { formatterNames.add(handler.getFormatterName()); handler.writeLogItem(item); } } finally { for (String formatterName : formatterNames) { config.getFormatter(formatterName).clear(); } } }
void writeLogItem(AuditLogItem item) { FailureCountHandler fch = getFailureCountHandler(); try { initialize(); String formattedItem = item.format(formatter); writeLogItem(formattedItem); fch.success(); } catch (Throwable t) { fch.failure(t); } }
void writeLogItem(AuditLogItem item) { FailureCountHandler fch = getFailureCountHandler(); try { initialize(); String formattedItem = item.format(formatter); writeLogItem(formattedItem); fch.success(); } catch (Throwable t) { fch.failure(t); } }
void writeLogItem(AuditLogItem item) { try { initialize(); String formattedItem = item.format(formatter); writeLogItem(formattedItem); failureCount = 0; } catch (Throwable t) { failureCount++; ControllerLogger.MGMT_OP_LOGGER.logHandlerWriteFailed(t, name); if (isDisabledDueToFailures()) { ControllerLogger.MGMT_OP_LOGGER.disablingLogHandlerDueToFailures(failureCount, name); } } }