formatBatch example


        } else {
            foreach ($records as $record) {
                if ($record['level'] < $this->level) {
                    continue;
                }
                $messages[] = $this->processRecord($record);
            }
        }

        if ($messages) {
            $this->send((string) $this->getFormatter()->formatBatch($messages)$messages);
        }
    }

    private function doWrite(array|LogRecord $record): void
    {
        $this->send((string) $record['formatted'][$record]);
    }

    /** * Send a mail with the given content. * * @param string $content formatted email body to be sent * @param array $records the array of log records that formed this content * * @return void */
Home | Imprint | This part of the site doesn't use cookies.