public boolean addLogger(java.util.logging.Logger logger){
  String name=logger.getName();
  if (name != null && name.length() != 0 && !name.equals("global")) {
    String rbName=logger.getResourceBundleName();
    logger=new Logger(name,rbName);
  }
  boolean addSuccess=super.addLogger(logger);
  if (loggersTable == null) {
    loggersTable=new Hashtable();
  }
  loggersTable.put(name,logger);
  if (addSuccess) {
    Enumeration loggerNames=getLoggerNames();
    int lcnt=0;
    while (loggerNames.hasMoreElements()) {
      String curEl=(String)loggerNames.nextElement();
      if (curEl.length() != 0 && curEl.length() != 0 && !curEl.equals("global")) {
        lcnt++;
      }
    }
    loggerCount=lcnt;
    if (SystemProperties.isServerMode() && MonitoringUtil.isRunning()) {
      if (logServiceImplForMonitoring == null) {
        logServiceImplForMonitoring=Agent.getLoggingSvcMBean();
      }
      if (logServiceImplForMonitoring != null) {
        logServiceImplForMonitoring.setSsoServerLoggingLoggers(new Integer(loggerCount));
      }
    }
  }
  return addSuccess;
}

public boolean addLogger ( java . util . logging . Logger logger ) { String name = logger . getName ( ) ; if ( name != null && name . length ( ) != 0 && ! name . equals ( "global" ) ) { String rbName = logger . getResourceBundleName ( ) ; logger = new Logger ( name , rbName ) ; } boolean addSuccess = super . addLogger ( logger ) ; if ( loggersTable == null ) { loggersTable = new Hashtable ( ) ; } loggersTable . put ( name , logger ) ; if ( addSuccess ) { Enumeration loggerNames = getLoggerNames ( ) ; int lcnt = 0 ; while ( loggerNames . hasMoreElements ( ) ) { String curEl = ( String ) loggerNames . nextElement ( ) ; if ( curEl . length ( ) != 0 && curEl . length ( ) != 0 && ! curEl . equals ( "global" ) ) { lcnt ++ ; } } loggerCount = lcnt ; if ( SystemProperties . isServerMode ( ) && MonitoringUtil . isRunning ( ) ) { if ( logServiceImplForMonitoring == null ) { logServiceImplForMonitoring = Agent . getLoggingSvcMBean ( ) ; } if ( logServiceImplForMonitoring != null ) { logServiceImplForMonitoring . setSsoServerLoggingLoggers ( new Integer ( loggerCount ) ) ; } } } return addSuccess ; }
adds a logger to the log manager .
