1 /** 2 * Logback: the generic, reliable, fast and flexible logging framework. 3 * 4 * Copyright (C) 2000-2008, QOS.ch 5 * 6 * This library is free software, you can redistribute it and/or modify it under 7 * the terms of the GNU Lesser General Public License as published by the Free 8 * Software Foundation. 9 */ 10 package ch.qos.logback.core.status; 11 12 import java.util.ArrayList; 13 import java.util.List; 14 15 /** 16 * Collect all incoming events in a list. 17 * 18 * @author Ceki Gülcü 19 * 20 */ 21 public class StatusListenerAsList implements StatusListener { 22 23 List<Status> statusList = new ArrayList<Status>(); 24 25 public void addStatusEvent(Status status) { 26 statusList.add(status); 27 } 28 29 public List<Status> getStatusList() { 30 return statusList; 31 } 32 33 34 }