1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс LogFormatter
Граф наследования:LogFormatter:
LogFormatterInterface LogFormatter

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

 __construct ($showArguments=false, $argMaxChars=30)
 format ($message, array $context=[])
 formatArguments ($args)
 formatArgument ($arg)

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

static severityToString ($severity)

Защищенные члены

 castToString ($value, $placeholder=null)
 formatException (\Throwable $exception)
 formatTrace (array $trace)
 formatDate (Type\Date $dateTime)
 formatMixed ($value)

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

const DELIMITER = '----------'
 $showArguments
 $argMaxChars

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

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

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

◆ __construct()

__construct ( $showArguments = false,
$argMaxChars = 30 )

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

Методы

◆ castToString()

castToString ( $value,
$placeholder = null )
protected

Magic is here.

Аргументы
mixed$value
null$placeholder
Возвращает
string

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

◆ format()

format ( $message,
array $context = [] )

Basic formatter to a string. Supports placeholders: {exception}, {trace}, {date}, {host}, {delimiter}. @inheritDoc

Замещает LogFormatterInterface.

Переопределяется в LogFormatter.

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

◆ formatArgument()

formatArgument ( $arg)

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

◆ formatArguments()

formatArguments ( $args)

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

◆ formatDate()

formatDate ( Type\Date $dateTime)
protected

Formats a date.

Аргументы
Type\DateTime$dateTime
Возвращает
string

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

◆ formatException()

formatException ( \Throwable $exception)
protected

Formats an exception.

Аргументы
\Throwable$exception
Возвращает
string

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

◆ formatMixed()

formatMixed ( $value)
protected

Formats a mixed value.

Аргументы
mixed$value
Возвращает
string

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

◆ formatTrace()

formatTrace ( array $trace)
protected

Formats a backtrace array.

Аргументы
array$trace
Возвращает
string

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

◆ severityToString()

severityToString ( $severity)
static

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

Поля

◆ $argMaxChars

$argMaxChars
protected

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

◆ $showArguments

$showArguments
protected

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

◆ DELIMITER

const DELIMITER = '----------'
protected

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


Объявления и описания членов класса находятся в файле: