logging.basicConfig(filename=’<yourfilename>.log‘, level=logging.DEBUG, format=’%(asctime)s %(levelname)s %(name)s %(threadName)s : %(message)s’)
в этом
%(asctime)s—A timestamp as a string.
%(levelname)s—The logging level as a string.
%(threadName)s—The thread name as a string.
%(message)s’—The log message.
- >> %(name)s—The logger name as a string.
здесь - это ссылка на тот же