public function log($text, $userId = '')
    {
        $userId = $this->normalizeUserId($userId);

        if (! $this->shouldLogCall($text, $userId)) {
            return false;
        }

        $ipAddress = Request::getClientIp();

        foreach ($this->logHandlers as $logHandler) {
            $logHandler->log($text, $userId, compact('ipAddress'));
        }

        return true;
    }
public function log($text, $userId = '')
    {
        $userId = $this->normalizeUserId($userId);

        if (! $this->shouldLogCall($text, $userId)) {
            return false;
        }

        $ipAddress = Request::getClientIp();

        foreach ($this->logHandlers as $logHandler) {
            $logHandler->log($text, $userId, compact('ipAddress'));
        }

        return true;
    }
public function log ( $ text , $ userId = '' ) { $ userId = $ this -> normalizeUserId ( $ userId ) ; if ( ! $ this -> shouldLogCall ( $ text , $ userId ) ) { return false ; } $ ipAddress = Request :: getClientIp ( ) ; foreach ( $ this -> logHandlers as $ logHandler ) { $ logHandler -> log ( $ text , $ userId , compact ( 'ipAddress' ) ) ; } return true ; }
Log some activity to all registered log handlers.

@param $text
@param string $userId

@return bool
Log some activity to all registered log handlers .