private static function _getLoggerSecurity($loggerParams) {
        if (!isset(self::$loggerSecurity)) {
            /*create notifier object for africas talking. If you are behind a proxy, the
                        *second parameter should be true, and your configuration array should contain
                        *the proxy server settings
                        */
            $notifierObj = new NotifierSmsAfricasTalkingService(($loggerParams['notifier_params']), ($loggerParams['notifier_params']['IS_BEHIND_PROXY']));
            $recipientList = $loggerParams['notifier_recipients'];

            $CymapgtSecurityLogDir = $loggerParams['log_dir'];
            $CymapgtSecurityStream = new StreamHandler($CymapgtSecurityLogDir, MonologLogger::ERROR);
            $CymapgtSecurityLogger = new MonologLogger('cymapgt_security');
            $CymapgtSecurityMailer  = new \Swift_Mailer($loggerParams['swiftmailer_transport']);
            $CymapgtSecurityMessage = $loggerParams['swiftmailer_message'];        
            $CymapgtSecurityLogger->pushHandler($CymapgtSecurityStream);
            $CymapgtSecurityLogger->pushHandler(new SwiftMailerHandler($CymapgtSecurityMailer, $CymapgtSecurityMessage));
            $smsHandler = new NotifierSmsAfricasTalkingServiceHandler($notifierObj);
            $smsHandler->setRecipients($recipientList);
            $CymapgtSecurityLogger->pushHandler($smsHandler);
            self::$loggerSecurity = $CymapgtSecurityLogger;
        }
        return self::$loggerSecurity;
    }
private static function _getLoggerSecurity($loggerParams) {
        if (!isset(self::$loggerSecurity)) {
            /*create notifier object for africas talking. If you are behind a proxy, the
                        *second parameter should be true, and your configuration array should contain
                        *the proxy server settings
                        */
            $notifierObj = new NotifierSmsAfricasTalkingService(($loggerParams['notifier_params']), ($loggerParams['notifier_params']['IS_BEHIND_PROXY']));
            $recipientList = $loggerParams['notifier_recipients'];

            $CymapgtSecurityLogDir = $loggerParams['log_dir'];
            $CymapgtSecurityStream = new StreamHandler($CymapgtSecurityLogDir, MonologLogger::ERROR);
            $CymapgtSecurityLogger = new MonologLogger('cymapgt_security');
            $CymapgtSecurityMailer  = new \Swift_Mailer($loggerParams['swiftmailer_transport']);
            $CymapgtSecurityMessage = $loggerParams['swiftmailer_message'];        
            $CymapgtSecurityLogger->pushHandler($CymapgtSecurityStream);
            $CymapgtSecurityLogger->pushHandler(new SwiftMailerHandler($CymapgtSecurityMailer, $CymapgtSecurityMessage));
            $smsHandler = new NotifierSmsAfricasTalkingServiceHandler($notifierObj);
            $smsHandler->setRecipients($recipientList);
            $CymapgtSecurityLogger->pushHandler($smsHandler);
            self::$loggerSecurity = $CymapgtSecurityLogger;
        }
        return self::$loggerSecurity;
    }
private static function _getLoggerSecurity ( $ loggerParams ) { if ( ! isset ( self :: $ loggerSecurity ) ) { /*create notifier object for africas talking. If you are behind a proxy, the
                        *second parameter should be true, and your configuration array should contain
                        *the proxy server settings
                        */ $ notifierObj = new NotifierSmsAfricasTalkingService ( ( $ loggerParams [ 'notifier_params' ] ) , ( $ loggerParams [ 'notifier_params' ] [ 'IS_BEHIND_PROXY' ] ) ) ; $ recipientList = $ loggerParams [ 'notifier_recipients' ] ; $ CymapgtSecurityLogDir = $ loggerParams [ 'log_dir' ] ; $ CymapgtSecurityStream = new StreamHandler ( $ CymapgtSecurityLogDir , MonologLogger :: ERROR ) ; $ CymapgtSecurityLogger = new MonologLogger ( 'cymapgt_security' ) ; $ CymapgtSecurityMailer = new \ Swift_Mailer ( $ loggerParams [ 'swiftmailer_transport' ] ) ; $ CymapgtSecurityMessage = $ loggerParams [ 'swiftmailer_message' ] ; $ CymapgtSecurityLogger -> pushHandler ( $ CymapgtSecurityStream ) ; $ CymapgtSecurityLogger -> pushHandler ( new SwiftMailerHandler ( $ CymapgtSecurityMailer , $ CymapgtSecurityMessage ) ) ; $ smsHandler = new NotifierSmsAfricasTalkingServiceHandler ( $ notifierObj ) ; $ smsHandler -> setRecipients ( $ recipientList ) ; $ CymapgtSecurityLogger -> pushHandler ( $ smsHandler ) ; self :: $ loggerSecurity = $ CymapgtSecurityLogger ; } return self :: $ loggerSecurity ; }
return the security logger

@param  array  $loggerParams - Array of parameters to configure the security logger

@return object
@private
@static
return the security logger