function startHandling() {
		$GLOBALS['pntErrorHandler'] = $this;

		$this->oldHandler = set_error_handler(array($this, 'handleError'), $this->reportingLevel | $this->getLoggingLevel() );
		//on PHP 5.3.0 unhandled errors are still being reported
		error_reporting($this->reportingLevel);
		
		PntError::storeDebugTrace($this->isDevelopment() || $this->logBacktrace);
		$this->oldExceptionHandler = set_exception_handler(array($this, 'handleException'));
	}