• Модуль: messageservice
  • Путь к файлу: ~/bitrix/modules/messageservice/lib/Restriction/Base.php
  • Класс: BitrixMessageServiceRestrictionBase
  • Вызов: Base::log
public function log()
{
	if (Option::get('messageservice', 'event_log_message_send', 'N') === 'Y')
	{
		$restrictionType = mb_strtoupper($this->getOptionLimitName());
		$userId = CurrentUser::get()->getId() ?: $this->message->getAuthorId();
		$phone = $this->message->getTo();

		$description = "Restriction: $restrictionType. Phone: $phone. CurrentCounter: $this->counter. Limit: $this->limit.";

		CEventLog::Log(
			'INFO',
			'MESSAGE_BLOCK',
			'messageservice',
			$userId,
			$description
		);
	}
}