Phalcon\Logger\Adapter\Firelogger::logInternal PHP Method

logInternal() public method

Writes the log to the headers.
public logInternal ( mixed $message, integer $type, integer $time, array $context = [] )
$message mixed Stuff to log. Can be of any type castable into a string (i.e. anything except for objects without __toString() implementation).
$type integer
$time integer
$context array
    public function logInternal($message, $type, $time, $context = [])
    {
        if (!$this->enabled) {
            return;
        }
        $trace = null;
        if ($this->options['traceable']) {
            $trace = debug_backtrace();
        }
        $log = $this->getFormatter()->format($message, $type, $time, $context, $trace, count($this->logs));
        $this->logs[] = $log;
        // flush if this is not transaction
        if (!$this->isTransaction) {
            $this->flush();
        }
    }