Skip to content

Instantly share code, notes, and snippets.

Last active July 30, 2018 23:49
What would you like to do?
public class StaticAppender extends AppenderBase<ILoggingEvent> {
static List<ILoggingEvent> events = new ArrayList<>();
public void append(ILoggingEvent e) {
public static List<ILoggingEvent> getEvents() {
return events;
public static void clearEvents() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment