Added optional LogLevel to CaptureException method.

So the appropriate level for the exception can be set.