CompositeFilter serverFilters = CompositeFilter.createFilters(new Filter[]{serverFilter});
ListAppender listApp = new ListAppender("Events", serverFilters, null, false, false);
appender.start();
PatternLayout layout = PatternLayout.createLayout("%m %ex%n", null, null, null);
ConsoleAppender console = ConsoleAppender.createAppender(layout, null, "SYSTEM_OUT", "Console", "true");
Logger serverLogger = ctx.getLogger(SocketServer.class.getName());
serverLogger.addAppender(console);
serverLogger.setAdditive(false);
// set appender on root and set level to debug
root.addAppender(appender);
root.addAppender(listApp);
root.setAdditive(false);