Neos\Flow\Log\Backend\AnsiConsoleBackend::append PHP Метод

append() публичный Метод

Appends the given message along with the additional information into the log.
public append ( string $message, integer $severity = LOG_INFO, array $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null ) : void
$message string
$severity integer
$additionalData array
$packageKey string
$className string
$methodName string
Результат void
    public function append($message, $severity = LOG_INFO, $additionalData = null, $packageKey = null, $className = null, $methodName = null)
    {
        if ($severity > $this->severityThreshold) {
            return;
        }
        $severityName = strtolower(trim($this->severityLabels[$severity]));
        $output = '<' . $severityName . '>' . $message . '</' . $severityName . '>';
        $output = $this->formatOutput($output);
        if (is_resource($this->streamHandle)) {
            fputs($this->streamHandle, $output . PHP_EOL);
        }
    }