src/Api/BaseClient.php
private function logMessage(Message $message)
    {
        $logMessage = \sprintf(
            '%s %s (%.3Fs)',
            $message->getRequest()->getMethod(),
            (string) $message->getRequest()->getUri(),
            $message->getDuration()
        );

        // This is a "simple" log, for general purpose
        $this->logger->log(
            $message->getLogLevel(),
            $logMessage
        );

        // This is a debug log, with all message details, useful for debugging
        $this->logger->debug($logMessage, $message->jsonSerialize());
    }
private function logMessage(Message $message)
    {
        $logMessage = \sprintf(
            '%s %s (%.3Fs)',
            $message->getRequest()->getMethod(),
            (string) $message->getRequest()->getUri(),
            $message->getDuration()
        );

        // This is a "simple" log, for general purpose
        $this->logger->log(
            $message->getLogLevel(),
            $logMessage
        );

        // This is a debug log, with all message details, useful for debugging
        $this->logger->debug($logMessage, $message->jsonSerialize());
    }
private function logMessage ( Message $ message ) { $ logMessage = \ sprintf ( '%s %s (%.3Fs)' , $ message -> getRequest ( ) -> getMethod ( ) , ( string ) $ message -> getRequest ( ) -> getUri ( ) , $ message -> getDuration ( ) ) ; // This is a "simple" log, for general purpose $ this -> logger -> log ( $ message -> getLogLevel ( ) , $ logMessage ) ; // This is a debug log, with all message details, useful for debugging $ this -> logger -> debug ( $ logMessage , $ message -> jsonSerialize ( ) ) ; }
Write information about a message object into the logger.

@param Message $message
Write information about a message object into the logger .