ErrorReporting/src/Bootstrap.php
public static function init(PsrLogger $psrLogger = null)
    {
        self::$psrLogger = $psrLogger ?: (new LoggingClient())
            ->psrLogger(self::DEFAULT_LOGNAME, [
                'batchEnabled' => true,
                'debugOutput' => true,
                'batchOptions' => [
                    'numWorkers' => 2
                ]
            ]);
        register_shutdown_function([self::class, 'shutdownHandler']);
        set_exception_handler([self::class, 'exceptionHandler']);
        set_error_handler([self::class, 'errorHandler']);
    }
public static function init(PsrLogger $psrLogger = null)
    {
        self::$psrLogger = $psrLogger ?: (new LoggingClient())
            ->psrLogger(self::DEFAULT_LOGNAME, [
                'batchEnabled' => true,
                'debugOutput' => true,
                'batchOptions' => [
                    'numWorkers' => 2
                ]
            ]);
        register_shutdown_function([self::class, 'shutdownHandler']);
        set_exception_handler([self::class, 'exceptionHandler']);
        set_error_handler([self::class, 'errorHandler']);
    }
public static function init ( PsrLogger $ psrLogger = null ) { self :: $ psrLogger = $ psrLogger ? : ( new LoggingClient ( ) ) -> psrLogger ( self :: DEFAULT_LOGNAME , [ 'batchEnabled' => true , 'debugOutput' => true , 'batchOptions' => [ 'numWorkers' => 2 ] ] ) ; register_shutdown_function ( [ self :: class , 'shutdownHandler' ] ) ; set_exception_handler ( [ self :: class , 'exceptionHandler' ] ) ; set_error_handler ( [ self :: class , 'errorHandler' ] ) ; }
Register hooks for error reporting.

@param PsrLogger $psrLogger
@return void
@codeCoverageIgnore
Register hooks for error reporting .