public void logIt(String[] s,int type,String messageName,Hashtable ssoProperties){
  if (logStatus && (s != null)) {
    try {
      LogMessageProviderBase provider=(LogMessageProviderBase)MessageProviderFactory.getProvider("Authentication");
      com.sun.identity.log.LogRecord lr=null;
      SSOToken ssot=AccessController.doPrivileged(AdminTokenAction.getInstance());
      if (ssoProperties == null) {
        lr=provider.createLogRecord(messageName,s,ssot);
      }
 else {
        lr=provider.createLogRecord(messageName,s,ssoProperties);
      }
      com.sun.identity.log.Logger logger;
switch (type) {
case LOG_ACCESS:
        logger=(com.sun.identity.log.Logger)Logger.getLogger("amAuthentication.access");
      logger.log(lr,ssot);
    break;
case LOG_ERROR:
  logger=(com.sun.identity.log.Logger)Logger.getLogger("amAuthentication.error");
logger.log(lr,ssot);
break;
default :
logger=(com.sun.identity.log.Logger)Logger.getLogger("amAuthentication.access");
logger.log(lr,ssot);
break;
}
}
 catch (IOException ex) {
ex.printStackTrace();
debug.error("Logging exception : " + ex.getMessage());
}
}
}

public void logIt ( String [ ] s , int type , String messageName , Hashtable ssoProperties ) { if ( logStatus && ( s != null ) ) { try { LogMessageProviderBase provider = ( LogMessageProviderBase ) MessageProviderFactory . getProvider ( "Authentication" ) ; com . sun . identity . log . LogRecord lr = null ; SSOToken ssot = AccessController . doPrivileged ( AdminTokenAction . getInstance ( ) ) ; if ( ssoProperties == null ) { lr = provider . createLogRecord ( messageName , s , ssot ) ; } else { lr = provider . createLogRecord ( messageName , s , ssoProperties ) ; } com . sun . identity . log . Logger logger ; switch ( type ) { case LOG_ACCESS : logger = ( com . sun . identity . log . Logger ) Logger . getLogger ( "amAuthentication.access" ) ; logger . log ( lr , ssot ) ; break ; case LOG_ERROR : logger = ( com . sun . identity . log . Logger ) Logger . getLogger ( "amAuthentication.error" ) ; logger . log ( lr , ssot ) ; break ; default : logger = ( com . sun . identity . log . Logger ) Logger . getLogger ( "amAuthentication.access" ) ; logger . log ( lr , ssot ) ; break ; } } catch ( IOException ex ) { ex . printStackTrace ( ) ; debug . error ( "Logging exception : " + ex . getMessage ( ) ) ; } } }
writes a log record .
