tools/slee-management-console/server/src/main/java/org/mobicents/slee/container/management/console/server/mbeans/LogManagementMBeanUtils.java
public boolean addLogger(String name, Level level) throws NullPointerException, ManagementConsoleException {
    try {
      return ((Boolean) this.mbeanServer.invoke(logMgmtMBeanName, "addLogger", new Object[] { name, level }, new String[] { "java.lang.String",
          "java.util.logging.Level" })).booleanValue();
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new ManagementConsoleException(SleeManagementMBeanUtils.doMessage(e));
    }
  }
public boolean addLogger(String name, Level level) throws NullPointerException, ManagementConsoleException {
    try {
      return ((Boolean) this.mbeanServer.invoke(logMgmtMBeanName, "addLogger", new Object[] { name, level }, new String[] { "java.lang.String",
          "java.util.logging.Level" })).booleanValue();
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new ManagementConsoleException(SleeManagementMBeanUtils.doMessage(e));
    }
  }
public boolean addLogger ( String name , Level level ) throws NullPointerException , ManagementConsoleException { try { return ( ( Boolean ) this . mbeanServer . invoke ( logMgmtMBeanName , "addLogger" , new Object [ ] { name , level } , new String [ ] { "java.lang.String" , "java.util.logging.Level" } ) ) . booleanValue ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new ManagementConsoleException ( SleeManagementMBeanUtils . doMessage ( e ) ) ; } }
Tries to add logger if it doesnt exist

@param name
- name of logger
@param level
- level for this logger, if <b>null</b> than default level for logger is used
@return <ul>
<li><b>true</b> - if logger didnt exist and it was created</li>
<li><b>false</b> - if logger did exist and it was not created</li>
</ul>
@throws NullPointerException
- when arg is null{}
Tries to add logger if it doesnt exist