Reference documentation and code samples for the Stackdriver Error Reporting Client class Bootstrap.
Static methods for bootstrapping Stackdriver Error Reporting.
Namespace
Google \ Cloud \ ErrorReportingMethods
static::prependFileLocation
Return the full path of the prepend file.
string
static::init
Register hooks for error reporting.
void
static::getErrorPrefix
Return a string prefix for the given error level.
level
int
string
static::getErrorLevelString
Return an error level string for the given PHP error level.
level
int
string
static::exceptionHandler
ex
mixed
\Throwable (PHP 7) or \Exception (PHP 5)
static::errorHandler
level
int
The error level.
message
string
The error message.
file
string
The filename that the error was raised in.
line
int
The line number that the error was raised at.
static::shutdownHandler
Called at exit, to check there's a fatal error and report the error if any.
Constants
DEFAULT_LOGNAME
Value: 'app-error'