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

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

Appends the given message along with the additional information into the log.
public append ( string $message, integer $severity = LOG_INFO, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null ) : void
$message string The message to log
$severity integer One of the LOG_* constants
$additionalData mixed A variable containing more information about the event to be logged
$packageKey string Key of the package triggering the log (determined automatically if not specified)
$className string Name of the class triggering the log (determined automatically if not specified)
$methodName string Name of the method triggering the log (determined automatically if not specified)
Результат void
    public function append($message, $severity = LOG_INFO, $additionalData = null, $packageKey = null, $className = null, $methodName = null)
    {
        if ($severity > $this->severityThreshold) {
            return;
        }
        $severityLabel = isset($this->severityLabels[$severity]) ? $this->severityLabels[$severity] : 'UNKNOWN  ';
        $output = $severityLabel . ' ' . $message;
        if (!empty($additionalData)) {
            $output .= PHP_EOL . $this->getFormattedVarDump($additionalData);
        }
        if (is_resource($this->streamHandle)) {
            fputs($this->streamHandle, $output . PHP_EOL);
        }
    }