ExceptionLogger
final class ExceptionLogger (View source)
Records uncaught runtime and PHP diagnostics through the error channel, including bootstrap fallback.
Methods
Binds diagnostic reporting to the root container and canonical application paths.
Records an uncaught throwable without allowing logging failures to alter error handling.
Records an HTTP-boundary throwable without persisting its message, trace, or object graph.
Records a PHP diagnostic with its severity and source location.
Details
__construct
__construct(ContainerInterface $container, ApplicationContext $context)
Binds diagnostic reporting to the root container and canonical application paths.
log
void
log(Throwable $exception, string $source)
Records an uncaught throwable without allowing logging failures to alter error handling.
logHttp
void
logHttp(Throwable $exception, string $source)
Records an HTTP-boundary throwable without persisting its message, trace, or object graph.
This boundary is intended for failures that may include request-controlled data.
logPhpDiagnostic
void
logPhpDiagnostic(int $severity, string $message, string $file, int $line, string $source)
Records a PHP diagnostic with its severity and source location.