Added optional LogLevel to CaptureException method.