Issue #4384: Added logging integration with warnings module using captureWarnings...