added file logging to deviceMon