changed logging to put all console logs to messages.log
changed logging