1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
jsonlinesformatter.php
См. документацию.
1
<?php
2
9
10
namespace
Bitrix\Main\Diag;
11
12
use Bitrix\Main\Web\Json;
13
14
class
JsonLinesFormatter
implements
LogFormatterInterface
15
{
16
protected
bool
$lineFeed
=
true
;
17
18
public
function
__construct
(
bool
$lineFeed
=
true
)
19
{
20
$this->lineFeed =
$lineFeed
;
21
}
22
29
public
function
format
(
$message
,
array
$context
= []): string
30
{
31
return
Json::encode(
$context
, JSON_UNESCAPED_UNICODE) . ($this->lineFeed ?
"\n"
:
''
);
32
}
33
}
Bitrix\Main\Diag\JsonLinesFormatter
Определения
jsonlinesformatter.php:15
Bitrix\Main\Diag\JsonLinesFormatter\__construct
__construct(bool $lineFeed=true)
Определения
jsonlinesformatter.php:18
Bitrix\Main\Diag\JsonLinesFormatter\$lineFeed
bool $lineFeed
Определения
jsonlinesformatter.php:16
Bitrix\Main\Diag\JsonLinesFormatter\format
format($message, array $context=[])
Определения
jsonlinesformatter.php:29
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Diag\LogFormatterInterface
Определения
logformatterinterface.php:13
$context
$context
Определения
csv_new_setup.php:223
$message
$message
Определения
payment.php:8
bitrix
modules
main
lib
diag
jsonlinesformatter.php
Создано системой
1.14.0