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;
}