method
public
FileExceptionHandlerLog::write()
Сигнатура
public write(Throwable $exception, int $logType) : mixed
Параметры
$exception
Throwable
$logType
int
Возвращаемое значение
mixed
Как применяется в FileExceptionHandlerLog
FileExceptionHandlerLog::write() — метод класса \Bitrix\Main\Diag\FileExceptionHandlerLog модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр FileExceptionHandlerLog.
use Bitrix\Main\Diag\FileExceptionHandlerLog;
/** @var FileExceptionHandlerLog $object */
$exception = null; // Throwable
$logType = 1;
$result = $object->write($exception, $logType);
// $result: mixedДругие методы FileExceptionHandlerLog
write() есть и у других классов модуля «Главный модуль»: Asset, CacheEngineApc, CacheEngineFiles, CacheEngineInterface, CacheEngineInterface, CacheEngineMemcache, CacheEngineMemcached, CacheEngineNone.
Исходный файл: source/main/lib/diag/fileexceptionhandlerlog.php:49

