1 16 17 package org.apache.log4j; 18 19 import org.apache.log4j.spi.Filter; 20 import org.apache.log4j.spi.ErrorHandler; 21 import org.apache.log4j.spi.LoggingEvent; 22 23 29 public interface Appender { 30 31 36 void addFilter(Filter newFilter); 37 38 45 public 46 Filter getFilter(); 47 48 53 public 54 void clearFilters(); 55 56 64 public 65 void close(); 66 67 71 public 72 void doAppend(LoggingEvent event); 73 74 75 78 public 79 String getName(); 80 81 82 87 public 88 void setErrorHandler(ErrorHandler errorHandler); 89 90 95 public 96 ErrorHandler getErrorHandler(); 97 98 103 public 104 void setLayout(Layout layout); 105 106 111 public 112 Layout getLayout(); 113 114 115 121 public 122 void setName(String name); 123 124 139 public 140 boolean requiresLayout(); 141 } 142 | Popular Tags |