• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/log/log.php
  • Класс: BitrixTasksInternalsLogLog
  • Вызов: Log::collect
public function collect($data): self
{
	try
	{
		if (!BitrixMainLoader::includeModule('intranet'))
		{
			return $this;
		}

		$this->currentPortal = CIntranetUtils::getHostName();

		$this->checkPortal() && $this->save($data);
	}
	catch (Exception $e)
	{
		return $this;
	}
	return $this;
}