Added implementation of createLogFile()