add some code about LogFile