@Test public void testDoAppend() { long time = System.currentTimeMillis(); final TsdrLogCollector tsdrLogCollector = new TsdrLogCollector(tsdrLogCollectorLogger, new TsdrLogCollectorConfig(FILE_NAME)); LogEvent logEvent = new LogEvent("org.opendaylight.plop.test", time, new LogLevel(), "this is a test"); tsdrLogCollector.doAppend(logEvent); verify(tsdrLogCollectorLogger, times(1)).insertLog(logEvent.getLoggerName(), logEvent.getTimeStamp(), logEvent.getLevel().toString(), logEvent.getMessage()); }
public void doAppend(PaxLoggingEvent event) { if (inLogAppender.get() == null) { try { inLogAppender.set(Boolean.TRUE); appendToTsdr(event); } finally { inLogAppender.remove(); } } }
TsdrLogCollector implements PaxAppender { public void doAppend(PaxLoggingEvent event) { if (inLogAppender.get() == null) { try { inLogAppender.set(Boolean.TRUE); appendToTsdr(event); } finally { inLogAppender.remove(); } } } }
TsdrLogCollector implements PaxAppender { public void doAppend(PaxLoggingEvent event) { if (inLogAppender.get() == null) { try { inLogAppender.set(Boolean.TRUE); appendToTsdr(event); } finally { inLogAppender.remove(); } } } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); }
TsdrLogCollector implements PaxAppender { public void doAppend(PaxLoggingEvent event) { if (inLogAppender.get() == null) { try { inLogAppender.set(Boolean.TRUE); appendToTsdr(event); } finally { inLogAppender.remove(); } } } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); void doAppend(PaxLoggingEvent event); }
TsdrLogCollector implements PaxAppender { public void doAppend(PaxLoggingEvent event) { if (inLogAppender.get() == null) { try { inLogAppender.set(Boolean.TRUE); appendToTsdr(event); } finally { inLogAppender.remove(); } } } TsdrLogCollector(TsdrLogCollectorLogger tsdrLogCollectorLogger,
                            TsdrLogCollectorConfig tsdrLogCollectorConfig); void doAppend(PaxLoggingEvent event);  }