Phalcon\Logger\Adapter\File\Multiple::logInternal PHP Метод

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

Writes the log to the file itself
public logInternal ( string $message, integer $type, integer $time, array $context = [] )
$message string
$type integer
$time integer
$context array
    public function logInternal($message, $type, $time, array $context = [])
    {
        $filename = $this->path . \DIRECTORY_SEPARATOR . $this->options['prefix'] . $this->getTypeString($type) . '.' . $this->options['extension'];
        $log = $this->getFormatter()->format($message, $type, $time, $context);
        $result = file_put_contents($filename, $log, \FILE_APPEND);
        if ($result === false) {
            throw new LoggerException('Failed to write log into ' . $filename);
        }
        return;
    }