Adding log file and generic wifilogger refactoring