Update logger.py

since any function is using write log to file I changed it to log a notice