Get Current Request Log ID

@return string
970630
public static function getLogid(): string
    {
        $contextData = self::getCoroutineContext(self::DATA_KEY);
        $logid = $contextData['logid'] ?? '';
        return $logid;
    }
687881
public function getRequestId()
    {
        if (isset($this->rawResponse) &&
            isset($this->rawResponse->header) &&
            isset($this->rawResponse->header['x-oss-request-id'])
        ) {
            return $this->rawResponse->header['x-oss-request-id'];
        } else {
            return '';
        }
    }
534956
public function getUniqueRequestId()
    {
        $cookies_str = '';
        foreach ($_COOKIE as $key => $val) {
            if (strpos($key, $this->getKey()) !== false) {
                $cookies_str .= $key . json_encode($val);
            }
        }

        return md5($cookies_str . $this->getKey() . json_encode($this->getInput()));
    }
882667
protected function getUserId()
    {
        try {
            if (Auth::check()) {
                return Auth::user()->getAuthIdentifier();
            }
        } catch (Exception $e) {
            Log::emergency($e);
            return;
        }

        return;
    }
539597
public function getClientId()
    {
        if ($this->url) {
            return (int) substr($this->url, strrpos($this->url, '/') + 1);
        }
    }
283380
static public function getID(): string
    {
        if (!isset(self::$cache['id'])) {
            $cookies = Internal\Cookies::getList(Internal\Cookies::TYPE_SERVER);
            self::$cache['id'] = isset($cookies['tmpr']) ? $cookies['tmpr'] : Internal\Themes::getActiveThemeID();
        }
        return self::$cache['id'];
    }
663687
public function getCacheId()
    {
        if (null === $this->cacheId) {
            $this->cacheId = md5($this->getSession()
                ->getManager()
                ->getId().'_'.$this->getId());
        }

        return $this->cacheId;
    }
1094742
public function getLog()
    {
        $log = [];
        foreach ($this->traces as $request => $traces) {
            $log[] = sprintf('%s: %s', $request, implode(', ', $traces));
        }

        return implode('; ', $log);
    }
1023542
public static function loggedId()
    {
        if (Podium::getInstance()->user->isGuest) {
            return null;
        }
        if (Podium::getInstance()->userComponent !== true) {
            $user = static::findMe();
            if (empty($user)) {
                return null;
            }
            return $user->id;
        }
        return Podium::getInstance()->user->id;
    }
200397
protected function getUpdateId(): int
    {
        if (!$this->updateId) {
            $data = $this->browse("DirectChildren");
            $this->updateId = $data["UpdateID"];
        }
        return $this->updateId;
    }
235543
public function getId()
    {
        $tmp = (array) $this->getHeaderFieldModel($this->getIdField());

        return $this->headers->has($this->getIdField()) ? current($tmp) : $this->id;
    }
245045
protected function getResourceLog()
    {
        $log = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $this->currentVersion, 'log');
        if ($log === false) {
            // Refetch the basic logrmation, and cache it.
            $process = new \Arbit\VCSWrapper\BzrCli\Process();
            $process->workingDirectory($this->root);

            // Execute log command
            $process->argument('xmllog');
            $process->argument('--forward'); // why reverse it when we can get them in order anyway?
            $process->argument('-q'); // quiet, don't show extra status stuff
            // Fetch for specified version, if set
            if ($this->currentVersion !== null) {
                $process->argument('-r ' . $this->currentVersion);
            }

            $process->argument(new \SystemProcess\Argument\PathArgument('.' . $this->path));

            $process->execute();

            // Parse commit log
            $xmlDoc = new \SimpleXMLElement($process->stdoutOutput);

            $lineCount  = count($xmlDoc->log);
            $log        = array();
            $lastCommit = null;
            foreach($xmlDoc->log as $entry) {
                $revno = $entry->revno;
                $author = $entry->committer;
                $date = strtotime($entry->timestamp);
                $desc = $entry->message;

                $newEntry = new \Arbit\VCSWrapper\LogEntry($revno, $author, $desc, $date);
                $log[(string) $revno] = $newEntry;
            }
            $last = end($log);

            $this->currentVersion = (string) $last->version;
            // Cache extracted data
            \Arbit\VCSWrapper\Cache\Manager::cache($this->path, $this->currentVersion, 'log', $log);
        }

        return $log;
    }
101082
public function getLog()
    {
        if (null == $this->log) {
            $handler    = new StreamHandler($this->_getLogFileName(), Logger::INFO);
            $this->log  = new Logger('VagrantTransient');
            $this->log->pushHandler($handler);
        }
        return $this->log;
    }
32172
public static function getCurrentIP()
    {
        $ip = '';

        foreach (['HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'] as $headerKey) {
            if ($item = getenv($headerKey)) {
                foreach (array_filter(explode(',', $item), 'trim') as $ipAddress) {
                    if ($ip = filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
                        break 2;
                    }
                }
            }
        }

        return (string) $ip;
    }
885093
public function getId()
    {
        if (is_array($this->id) && count($this->id) === 1) {
            return current($this->id);
        }
        return $this->id;
    }
1240050
public function CheckIfIsStillLoggedId()
    {
        $gnLoginResult = $this->ExecuteCall("IsStillLoggedIn", (object)[
            "loginId" => $this->_loginId
        ], GnResponseType::Boolean, FALSE, PHP_INT_MAX);

        return $gnLoginResult;
    }
1130243
public function getSessionId()
    {
        if($this->startSession && !$this->session->isStarted()) {
            $this->session->start();
        }

        if ($this->session->isStarted()) {
            // We assume the sessionId contains data and has to be protected,
            // so we use a salted SHA1 checksum.
            return sha1($this->secret . $this->session->getId());
            // In the end this method will be called for _each_ log message.
            // If the session id would be constant and accessible through the whole request,
            // this would not be necessary.
        }

        return null;
    }