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