pytanght
7/23/2018 - 4:39 AM

Basic config of logging

Simple usage of logging module of python

logging.basicConfig(level=logging.DEBUG,
                format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
                datefmt='%a, %d %b %Y %H:%M:%S',
                filename=AUTO_DETECT_LOG_FILE,
                filemode='a+')