Package ch.qos.logback.core.status

Examples of ch.qos.logback.core.status.StatusUtil.addInfo()


      ObjectName objectName, Object caller) {

    StatusUtil statusUtil = new StatusUtil(loggerContext);
    if (mbs.isRegistered(objectName)) {
      try {
        statusUtil.addInfo(caller, "Unregistering mbean ["
            + objectName + "]");
        mbs.unregisterMBean(objectName);
      } catch (InstanceNotFoundException e) {
        // this is theoretically impossible
        statusUtil.addError(caller, "Failed to unregister mbean"
View Full Code Here


        // this is theoretically impossible
        statusUtil.addError(caller, "Failed to unregister mbean"
            + objectName, e);
      }
    } else {
      statusUtil.addInfo(caller, "mbean [" + objectName
          + "] does not seem to be registered");
    }
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.