Update main/logger.py

Added opportunity to save the log in a text file (log.txt)