@Test public void testDefaultFormatAuditEntryWithAll() { Slf4jAuditLogger logger = loggerWithConfig(DEFAULT_LOG_FORMAT); logger.log(logEntryWithAll); assertThat(getSlf4jLogMessage()) .isEqualTo("client:'127.0.0.1'|user:'user'|batchId:'12345678-aaaa-bbbb-cccc-123456789abc'|status:'ATTEMPT'|operation:'insert into ks.tbl (key, val) values (?, ?)['kalle', 'anka']'"); }
@Override public void log(AuditEntry logEntry) { auditLogger.info(formatter.getLogTemplate(), formatter.getArgumentsForEntry(logEntry)); }
Slf4jAuditLogger implements AuditLogger { @Override public void log(AuditEntry logEntry) { auditLogger.info(formatter.getLogTemplate(), formatter.getArgumentsForEntry(logEntry)); } }
Slf4jAuditLogger implements AuditLogger { @Override public void log(AuditEntry logEntry) { auditLogger.info(formatter.getLogTemplate(), formatter.getArgumentsForEntry(logEntry)); } Slf4jAuditLogger(Map<String, String> parameters); @VisibleForTesting  Slf4jAuditLogger(Map<String, String> parameters, String loggerName); @VisibleForTesting  Slf4jAuditLogger(Slf4jAuditLoggerConfig auditConfig, Logger logger); }
Slf4jAuditLogger implements AuditLogger { @Override public void log(AuditEntry logEntry) { auditLogger.info(formatter.getLogTemplate(), formatter.getArgumentsForEntry(logEntry)); } Slf4jAuditLogger(Map<String, String> parameters); @VisibleForTesting  Slf4jAuditLogger(Map<String, String> parameters, String loggerName); @VisibleForTesting  Slf4jAuditLogger(Slf4jAuditLoggerConfig auditConfig, Logger logger); @Override void log(AuditEntry logEntry); }
Slf4jAuditLogger implements AuditLogger { @Override public void log(AuditEntry logEntry) { auditLogger.info(formatter.getLogTemplate(), formatter.getArgumentsForEntry(logEntry)); } Slf4jAuditLogger(Map<String, String> parameters); @VisibleForTesting  Slf4jAuditLogger(Map<String, String> parameters, String loggerName); @VisibleForTesting  Slf4jAuditLogger(Slf4jAuditLoggerConfig auditConfig, Logger logger); @Override void log(AuditEntry logEntry); static final String AUDIT_LOGGER_NAME; }