Documentation

initialize

void public
\Bitrix\Main\Diag\ExceptionHandler::initialize(
 callable $exceptionHandlerOutputCreator,
 callable|null $exceptionHandlerLogCreator = null
);

Non-static method initializes error processing.

Must be called after creating an object.

Parameters

ParameterDescriptionVersion
$exceptionHandlerOutputCreatorFunction for returning an object for error message formatting.
$exceptionHandlerLogCreatorFunction for returning an object for writing into log.

Example



© «Bitrix24», 2001-2022
Up