protected function logToFile($data, $type = '')
    {
        $this->logger->log(
            // Log as error if we get a GatewayErrorMessage
            is_subclass_of($type, GatewayErrorMessage::class) ? 'error' : 'info',
            // Log title
            sprintf('%s (%s)', $type, $this->payment->Gateway),
            // Log context (just output the data)
            Logging::prepareForLogging($data)
        );
    }
protected function logToFile($data, $type = '')
    {
        $this->logger->log(
            // Log as error if we get a GatewayErrorMessage
            is_subclass_of($type, GatewayErrorMessage::class) ? 'error' : 'info',
            // Log title
            sprintf('%s (%s)', $type, $this->payment->Gateway),
            // Log context (just output the data)
            Logging::prepareForLogging($data)
        );
    }
protected function logToFile ( $ data , $ type = '' ) { $ this -> logger -> log ( // Log as error if we get a GatewayErrorMessage is_subclass_of ( $ type , GatewayErrorMessage :: class ) ? 'error' : 'info' , // Log title sprintf ( '%s (%s)' , $ type , $ this -> payment -> Gateway ) , // Log context (just output the data) Logging :: prepareForLogging ( $ data ) ) ; }
Helper function for logging gateway requests
@param mixed $data Data to log.
@param string $type Error message class.
Helper function for logging gateway requests