1 16 17 package org.apache.log4j.spi; 18 19 import org.apache.log4j.*; 20 import java.util.Enumeration ; 21 22 34 public interface LoggerRepository { 35 36 39 public 40 void addHierarchyEventListener(HierarchyEventListener listener); 41 42 47 boolean isDisabled(int level); 48 49 53 public 54 void setThreshold(Level level); 55 56 59 public 60 void setThreshold(String val); 61 62 public 63 void emitNoAppenderWarning(Category cat); 64 65 68 public 69 Level getThreshold(); 70 71 public 72 Logger getLogger(String name); 73 74 public 75 Logger getLogger(String name, LoggerFactory factory); 76 77 public 78 Logger getRootLogger(); 79 80 public 81 abstract 82 Logger exists(String name); 83 84 public 85 abstract 86 void shutdown(); 87 88 public 89 Enumeration getCurrentLoggers(); 90 91 93 public 94 Enumeration getCurrentCategories(); 95 96 97 public 98 abstract 99 void fireAddAppenderEvent(Category logger, Appender appender); 100 101 public 102 abstract 103 void resetConfiguration(); 104 105 } 106 | Popular Tags |