SimpleHistory::getLogRowPlainTextOutput PHP Method

getLogRowPlainTextOutput() public method

Return plain text output for a log row Uses the getLogRowPlainTextOutput of the logger that logged the row with fallback to SimpleLogger if logger is not available
public getLogRowPlainTextOutput ( array $row ) : string
$row array
return string
    public function getLogRowPlainTextOutput($row)
    {
        $row_logger = $row->logger;
        $logger = null;
        $row->context = isset($row->context) && is_array($row->context) ? $row->context : array();
        if (!isset($row->context["_message_key"])) {
            $row->context["_message_key"] = null;
        }
        // Fallback to SimpleLogger if no logger exists for row
        if (!isset($this->instantiatedLoggers[$row_logger])) {
            $row_logger = "SimpleLogger";
        }
        $logger = $this->instantiatedLoggers[$row_logger]["instance"];
        return $logger->getLogRowPlainTextOutput($row);
    }
SimpleHistory