Bitrix API

LogFormatter extends LogFormatter

Table of Contents

Constants

PLACEHOLDER_DATE  = 'date'
PLACEHOLDER_EXCEPTION  = 'exception'
PLACEHOLDER_TRACE  = 'trace'
SIGN_PLACEHOLDER_DUMP  = 'sign_debug_dump'
SIGN_PLACEHOLDER_HOST  = 'sign_debug_host'

Methods

__construct()  : mixed
format()  : string
Basic formatter to a string. Supports placeholders: {exception}, {trace}, {date}, {delimiter}.
severityToString()  : mixed

Constants

PLACEHOLDER_EXCEPTION

public mixed PLACEHOLDER_EXCEPTION = 'exception'

PLACEHOLDER_TRACE

public mixed PLACEHOLDER_TRACE = 'trace'

SIGN_PLACEHOLDER_DUMP

public mixed SIGN_PLACEHOLDER_DUMP = 'sign_debug_dump'

SIGN_PLACEHOLDER_HOST

public mixed SIGN_PLACEHOLDER_HOST = 'sign_debug_host'

Methods

__construct()

public __construct([mixed $showArguments = false ][, mixed $argMaxChars = 30 ]) : mixed
Parameters
$showArguments : mixed = false
$argMaxChars : mixed = 30

format()

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

public format(mixed $message[, array<string|int, mixed> $context = [] ]) : string
Parameters
$message : mixed
$context : array<string|int, mixed> = []
Return values
string

severityToString()

public static severityToString(mixed $severity) : mixed
Parameters
$severity : mixed

        
On this page

Search results