1 22 package org.jboss.logging; 23 24 import java.io.IOException ; 25 import java.net.MalformedURLException ; 26 import java.net.URL ; 27 28 import javax.management.ObjectName ; 29 30 import org.jboss.mx.util.ObjectNameFactory; 31 import org.jboss.system.ServiceMBean; 32 33 36 public interface Log4jServiceMBean extends ServiceMBean 37 { 38 39 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.system:type=Log4jService,service=Logging"); 40 41 42 String RECONFIGURE_NOTIFICATION_TYPE = "jboss.logging.log4j.reconfigure"; 43 44 46 50 void setCatchSystemOut(boolean flag); 51 boolean getCatchSystemOut(); 52 53 57 void setCatchSystemErr(boolean flag); 58 boolean getCatchSystemErr(); 59 60 64 void setLog4jQuietMode(boolean flag); 65 boolean getLog4jQuietMode(); 66 67 70 void setRefreshPeriod(int refreshPeriod); 71 int getRefreshPeriod(); 72 73 76 void setConfigurationURL(URL url); 77 URL getConfigurationURL(); 78 79 81 88 void setLoggerLevel(String name, String levelName); 89 90 97 void setLoggerLevels(String list, String levelName); 98 99 104 String getLoggerLevel(String name); 105 106 109 void reconfigure() throws IOException ; 110 111 117 void reconfigure(String url) throws IOException , MalformedURLException ; 118 119 } 120 | Popular Tags |