tools/slee-management-console/server/src/main/java/org/mobicents/slee/container/management/console/server/mbeans/LogManagementMBeanUtils.java
public void addSocketHandler(String loggerName, Level handlerLevel, String handlerName, String formaterClassName, String filterClassName, String host,
      int port) throws ManagementConsoleException {

    try {
      this.mbeanServer.invoke(logMgmtMBeanName, "addSocketHandler", new Object[] { loggerName, handlerLevel, handlerName, formaterClassName, filterClassName,
          host, port }, new String[] { "java.lang.String", "java.util.logging.Level", "java.lang.String", "java.lang.String", "java.lang.String",
          "java.lang.String", "int" });
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new ManagementConsoleException(SleeManagementMBeanUtils.doMessage(e));
    }

  }
public void addSocketHandler(String loggerName, Level handlerLevel, String handlerName, String formaterClassName, String filterClassName, String host,
      int port) throws ManagementConsoleException {

    try {
      this.mbeanServer.invoke(logMgmtMBeanName, "addSocketHandler", new Object[] { loggerName, handlerLevel, handlerName, formaterClassName, filterClassName,
          host, port }, new String[] { "java.lang.String", "java.util.logging.Level", "java.lang.String", "java.lang.String", "java.lang.String",
          "java.lang.String", "int" });
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new ManagementConsoleException(SleeManagementMBeanUtils.doMessage(e));
    }

  }
Adds SocketHandler to certain logger, this logger must exist prior this function is called

@param loggerName
- name of the logger, cant be null
@param handlerLevel
- level for this handler, if its null default level for handlers will be used
@param handlerName
- name for this handler, cant be duplicate.
@param formaterClassName
- name of formater class for this handler, can be null.
@param filterClassName
- name of filter class for this handler, can be null.
@param host
- host address
@param port
- port address
@throws IllegalArgumentException
- thrown when:
<ul>
<li>host is not a valid inet address</li>
<li>port <0</li>
</ul>
@throws NullPointerException
- if arg other than:
<ul>
<li>formaterClassName</li>
<li>filterClassName</li>
<li>handlerLevel</li>
</ul>
is null.
@throws IllegalStateException
:- thrown when:
<ul>
<li>Logger under certain name doesnt exist</li>
<li>handler name is duplicate of another handler for this logger or is reserved one ->NOTIFICATION</li>
</ul>
@throw IOException - when host cant be reached