This is an artifact of what I mentioned earlier about mutable state.  Better to have either one Log Parser instance per log file, or have the file be a parameter to these functions.