logging to Monitor.txt added