[PlugnHack] Added a function for PnH log file creation and a function for writing PnH events in log file