Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс RequestLogger
+ Граф наследования:RequestLogger:

Открытые члены

 __construct (int $userId, string $serviceName)
 
 write (array $context)
 
 log ($level, $message, array $context=[])
 

Открытые статические члены

static enable (int $ttl=0)
 
static isEnabled ()
 

Защищенные данные

string $serviceName
 
int $userId
 

Подробное описание

См. определение в файле requestlogger.php строка 11

Конструктор(ы)

◆ __construct()

__construct ( int  $userId,
string  $serviceName 
)
Аргументы
int$userId
string$serviceName

См. определение в файле requestlogger.php строка 73

Методы

◆ enable()

static enable ( int  $ttl = 0)
static
Аргументы
int$ttl
Возвращает
void
Исключения
Main

ArgumentOutOfRangeException

См. определение в файле requestlogger.php строка 35

◆ isEnabled()

static isEnabled ( )
static
Возвращает
bool

См. определение в файле requestlogger.php строка 49

◆ log()

log (   $level,
  $message,
array  $context = [] 
)
Аргументы
$level
$message
array$context,{requestParams: array, url: string, method: string, statusCode: string, response: string, error: string, host: string, }
Возвращает
void
Исключения
Main

LoaderException

См. определение в файле requestlogger.php строка 133

◆ write()

write ( array  $context)

this method for log data from sync request you should send params in context:

  • requestParams
  • url
  • method
  • statusCode
  • response
  • error
    Аргументы
    array$context,{requestParams: array, url: string, method: string, statusCode: string, response: string, error: string, host: string, }
    Возвращает
    void
    Исключения
    Main
    LoaderException

См. определение в файле requestlogger.php строка 101

Данные класса

◆ $serviceName

string $serviceName
protected

См. определение в файле requestlogger.php строка 18

◆ $userId

int $userId
protected

См. определение в файле requestlogger.php строка 23