Update logs.py

Changed the stripLines() method to be a little more generalized