3namespace Bitrix\Sale\PaySystem;
5use Bitrix\Main\ArgumentTypeException;
6use Bitrix\Main\Config\Option;
7use Bitrix\Main\Type\DateTime;
8use Bitrix\Sale\Internals\PaySystemErrLogTable;
38 if (self::getLevel() > static::E_ERROR)
43 PaySystemErrLogTable::add([
58 if (!is_string($debugInfo))
63 if (self::getLevel() !== static::E_ALL)
68 PaySystemErrLogTable::add([
70 'MESSAGE' => $debugInfo,
79 private static function getLevel()
81 return (
int)Option::get(
'sale',
'pay_system_log_level', static::E_ERROR);
93 'Method will be deleted in one of the future releases. Use \Bitrix\Sale\PaySystem\Logger::addError instead',
103 && is_array(
$fields[
'MESSAGE'])
111 PaySystemErrLogTable::add(
$fields);
static addDebugInfo($debugInfo)
static add(array $fields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)