original_string: protected function send(): void
      {
          if (self::$overflowed || !self::$sendHeaders) {
              return;
          }
  
          if (!self::$initialized) {
              self::$initialized = true;
  
              self::$sendHeaders = $this->headersAccepted();
              if (!self::$sendHeaders) {
                  return;
              }
  
              self::$json['request_uri'] = $_SERVER['REQUEST_URI'] ?? '';
          }
  
          $json = @json_encode(self::$json);
          $data = base64_encode(utf8_encode($json));
          if (strlen($data) > 240 * 1024) {
              self::$overflowed = true;
  
              $record = [
                  'message' => 'Incomplete logs, chrome header size limit reached',
                  'context' => [],
                  'level' => Logger::WARNING,
                  'level_name' => Logger::getLevelName(Logger::WARNING),
                  'channel' => 'monolog',
                  'datetime' => new \DateTimeImmutable(),
                  'extra' => [],
              ];
              self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
              $json = @json_encode(self::$json);
              $data = base64_encode(utf8_encode($json));
          }
  
          if (trim($data) !== '') {
              $this->sendHeader(static::HEADER_NAME, $data);
          }
      }
code: protected function send(): void
      {
          if (self::$overflowed || !self::$sendHeaders) {
              return;
          }
  
          if (!self::$initialized) {
              self::$initialized = true;
  
              self::$sendHeaders = $this->headersAccepted();
              if (!self::$sendHeaders) {
                  return;
              }
  
              self::$json['request_uri'] = $_SERVER['REQUEST_URI'] ?? '';
          }
  
          $json = @json_encode(self::$json);
          $data = base64_encode(utf8_encode($json));
          if (strlen($data) > 240 * 1024) {
              self::$overflowed = true;
  
              $record = [
                  'message' => 'Incomplete logs, chrome header size limit reached',
                  'context' => [],
                  'level' => Logger::WARNING,
                  'level_name' => Logger::getLevelName(Logger::WARNING),
                  'channel' => 'monolog',
                  'datetime' => new \DateTimeImmutable(),
                  'extra' => [],
              ];
              self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
              $json = @json_encode(self::$json);
              $data = base64_encode(utf8_encode($json));
          }
  
          if (trim($data) !== '') {
              $this->sendHeader(static::HEADER_NAME, $data);
          }
      }
code_tokens: protected function send ( ) : void { if ( self :: $ overflowed || ! self :: $ sendHeaders ) { return ; } if ( ! self :: $ initialized ) { self :: $ initialized = true ; self :: $ sendHeaders = $ this -> headersAccepted ( ) ; if ( ! self :: $ sendHeaders ) { return ; } self :: $ json [ 'request_uri' ] = $ _SERVER [ 'REQUEST_URI' ] ?? '' ; } $ json = @ json_encode ( self :: $ json ) ; $ data = base64_encode ( utf8_encode ( $ json ) ) ; if ( strlen ( $ data ) > 240 * 1024 ) { self :: $ overflowed = true ; $ record = [ 'message' => 'Incomplete logs, chrome header size limit reached' , 'context' => [ ] , 'level' => Logger :: WARNING , 'level_name' => Logger :: getLevelName ( Logger :: WARNING ) , 'channel' => 'monolog' , 'datetime' => new \ DateTimeImmutable ( ) , 'extra' => [ ] , ] ; self :: $ json [ 'rows' ] [ count ( self :: $ json [ 'rows' ] ) - 1 ] = $ this -> getFormatter ( ) -> format ( $ record ) ; $ json = @ json_encode ( self :: $ json ) ; $ data = base64_encode ( utf8_encode ( $ json ) ) ; } if ( trim ( $ data ) !== '' ) { $ this -> sendHeader ( static :: HEADER_NAME , $ data ) ; } }
docstring: Sends the log header
  
  @see sendHeader()
docstring_tokens: Sends the log header