Documentation

setLogErrors

 public static
\Bitrix\Main\Service\GeoIp\Manager::setLogErrors(
 boolean $isLog
);

Static method enables/disables logging for debugging purposes. Errors will be recorded into system log.

Parameters

ParameterDescriptionVersion
$isLog

Examples

Errors can be recorded into system log for debugging purposes:

GeoIp\Manager::setLogErrors(true);
 $geoResult = GeoIp\Manager::getDataResult('92.50.195.50', 'ru', array('countryName', 'cityName'));


© «Bitrix24», 2001-2024
Up