src/Skeetr/Client/Handler/Error.php
public static function register($level = null)
    {
        $handler = new static();
        $handler->setLevel($level);

        ini_set('display_errors', 0);
        set_exception_handler(array($handler, 'handleException'));
        set_error_handler(array($handler, 'handle'));
        register_shutdown_function(array($handler, 'handleFatal'));
        $handler->reservedMemory = str_repeat('x', 10240);

        return $handler;
    }
public static function register($level = null)
    {
        $handler = new static();
        $handler->setLevel($level);

        ini_set('display_errors', 0);
        set_exception_handler(array($handler, 'handleException'));
        set_error_handler(array($handler, 'handle'));
        register_shutdown_function(array($handler, 'handleFatal'));
        $handler->reservedMemory = str_repeat('x', 10240);

        return $handler;
    }
Register the error handler. The level at which the conversion to Exception is done
(null to use the error_reporting() value and 0 to disable)

@param  integer $level
@return The     registered error handler