• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/logger.php
  • Класс: BitrixMainDiagLogger
  • Вызов: Logger::interpolate
protected function interpolate()
{
	if (!isset($this->context['date']))
	{
		$this->context['date'] = new TypeDateTime();
	}

	if (!isset($this->context['host']))
	{
		$this->context['host'] = $_SERVER['HTTP_HOST'] ?? '';
	}

	$formatter = $this->getFormatter();

	return $formatter->format($this->message, $this->context);
}