• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/logger.php
  • Класс: BitrixMainDiagLogger
  • Вызов: Logger::logMessage
protected function logMessage(string $level, string $message);

/**
 * Sets the maximun verbose level of the logger.
 * @param string $level One of LogLevel constants.
 * @return $this
 */
public function setLevel(string $level)
{
	if (isset(static::$supportedLevels[$level]))
	{
		$this->level = static::$supportedLevels[$level];
	}

	return $this;
}