1 18 package org.objectweb.util.monolog.wrapper.remote.api; 19 20 import org.objectweb.util.monolog.api.Level; 21 22 import java.util.Map ; 23 import java.util.Properties ; 24 25 32 public interface MonologFactoryMBean { 33 34 35 41 boolean defineLevel(String name, int value); 42 43 50 boolean defineLevel(String name, String value); 51 52 55 void removeLevel(String name); 56 57 62 Level getLevel(String name); 63 64 72 Level getLevel(int value); 73 74 77 Level[] getLevels(); 78 79 87 int compareTo(String levelname1, String levelname2); 88 89 96 boolean createHandler(String hn, String handlertype); 97 98 103 boolean removeHandler(String handlername); 104 105 108 String [] getHandlerNames(); 109 110 116 Map getHandlerAttributes(String handlername); 117 118 125 Map getAllHandlerAttributes() ; 126 127 133 void setHandlerAttribute(String handlername, 134 String attributeName, 135 String value); 136 137 138 142 LoggerInfo getLogger(String loggername); 143 144 150 LoggerInfo getLogger(String key, String resourceBundleName); 151 152 155 String getResourceBundleName(); 156 157 160 void setResourceBundleName(String resourceBundleName); 161 162 165 LoggerInfo[] getLoggers(); 166 167 172 void addHandlerToLogger(String handlerName, String loggerName); 173 174 178 void removeHandlerFromLogger(String handlerName, String loggerName); 179 180 184 void removeAllHandlersFromLogger(String loggerName); 185 186 189 void setAdditivity(boolean a, String loggerName); 190 191 196 void setLoggerLevel(int level, String loggerName); 197 198 205 void setLoggerLevel(String levelName, String loggerName); 206 207 213 void addTopicToLogger(String topic, String loggerName) ; 214 215 221 void removeTopicFromLogger(String topic, String loggerName) ; 222 223 226 Properties getMonologProperties(); 227 228 231 void setMonologProperties(Properties p); 232 } 233 | Popular Tags |