question: public static void logErrorMessage ( String msgIdName , String data [ ] , SSOToken token ) throws SSOException { try { if ( msgProvider == null ) { msgProvider = MessageProviderFactory . getProvider ( "Policy" ) ; } } catch ( IOException e ) { debug . error ( "PolicyUtils.logErrorMessage()" , e ) ; debug . error ( "PolicyUtils.logAccessMessage():" + "disabling logging" ) ; logStatus = false ; } if ( ( errorLogger != null ) && ( msgProvider != null ) ) { LogRecord lr = msgProvider . createLogRecord ( msgIdName , data , token ) ; if ( lr != null ) { SSOToken ssoToken = ( SSOToken ) AccessController . doPrivileged ( AdminTokenAction . getInstance ( ) ) ; errorLogger . log ( lr , ssoToken ) ; } } }
target:  Logs an error message