moved log mashalling code into LogFileReader