@Test public void renderLogEntryWithoutException() { ExceptionToken token = new ExceptionToken(Collections.emptyList()); assertThat(render(token, null)).isEmpty(); }
@Override public void render(final LogEntry logEntry, final StringBuilder builder) { Throwable throwable = logEntry.getException(); if (throwable != null) { render(filter(throwable), Collections.<StackTraceElement>emptyList(), builder); } }
ExceptionToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { Throwable throwable = logEntry.getException(); if (throwable != null) { render(filter(throwable), Collections.<StackTraceElement>emptyList(), builder); } } }
ExceptionToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { Throwable throwable = logEntry.getException(); if (throwable != null) { render(filter(throwable), Collections.<StackTraceElement>emptyList(), builder); } } ExceptionToken(final List<ThrowableFilter> filters); }
ExceptionToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { Throwable throwable = logEntry.getException(); if (throwable != null) { render(filter(throwable), Collections.<StackTraceElement>emptyList(), builder); } } ExceptionToken(final List<ThrowableFilter> filters); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index); }
ExceptionToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { Throwable throwable = logEntry.getException(); if (throwable != null) { render(filter(throwable), Collections.<StackTraceElement>emptyList(), builder); } } ExceptionToken(final List<ThrowableFilter> filters); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index);  }