LogFile fix and test