Fastest way to check whether a file contains any string from a list of strings
<p>I have several .tgz log files each containing few hundred to thousand lines. I also have a list of error strings. I have to read each and every log file inside the zip file and check whether any of the error strings is present in that file. I also need to get the name of the file in which the error pattern was found.</p>

<pre><code>errorList = ["errorPattern1", "errorPattern2",..., "errorPatternN"]
</code></pre>

<p>Which is the fastest way to do it in Python?</p>