Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DataBaseLogger.php
1<?php
2
4
8
14{
15 protected function logMessage(string $level, string $message)
16 {
17 if (LoggerManager::getInstance()->isActive())
18 {
19 LogTable::add(
20 [
21 'CLIENT_ID' => Date::createFromTimestamp(time()),
22 'PASSWORD_ID' => 0,
23 'SCOPE' => '',
24 'METHOD' => 'logger:' . $level,
25 'REQUEST_METHOD' => '',
26 'REQUEST_URI' => '',
27 'REQUEST_AUTH' => '',
28 'REQUEST_DATA' => '',
29 'RESPONSE_STATUS' => \CHTTP::getLastStatus(),
30 'RESPONSE_DATA' => $message,
31 ]
32 );
33 }
34 }
35}
logMessage(string $level, string $message)