@Test @Ignore public void testSimple() { TimberHandler handler = new TimberHandler("myservice", "localhost", serverListenPort); handler.publish(rec); assertEquals(1, listLogHandler.getEvents().size()); }
@Override public void publish(LogRecord record) { ensureLogserverConnection(); client.submitLogEvent(converter.convertFrom(record)); }
TimberHandler extends Handler { @Override public void publish(LogRecord record) { ensureLogserverConnection(); client.submitLogEvent(converter.convertFrom(record)); } }
TimberHandler extends Handler { @Override public void publish(LogRecord record) { ensureLogserverConnection(); client.submitLogEvent(converter.convertFrom(record)); } TimberHandler(String service, String host, int port); }
TimberHandler extends Handler { @Override public void publish(LogRecord record) { ensureLogserverConnection(); client.submitLogEvent(converter.convertFrom(record)); } TimberHandler(String service, String host, int port); @Override void close(); @Override void flush(); @Override void publish(LogRecord record); }
TimberHandler extends Handler { @Override public void publish(LogRecord record) { ensureLogserverConnection(); client.submitLogEvent(converter.convertFrom(record)); } TimberHandler(String service, String host, int port); @Override void close(); @Override void flush(); @Override void publish(LogRecord record);  }