In my last request, I accidentally left the logfile with a default, so Naomi still records log entries to that file. Also, my idea for having two log handlers - one that writes to a file for anything below ERROR level messages and another that also sends ERROR and CRITICAL messages to the screen did not work because the handler settings do not automatically come with the logger, just the settings passed to logging.basicConfig do. So every time a logger is created, the handlers have to be added.
Description
In my last request, I accidentally left the logfile with a default, so Naomi still records log entries to that file. Also, my idea for having two log handlers - one that writes to a file for anything below ERROR level messages and another that also sends ERROR and CRITICAL messages to the screen did not work because the handler settings do not automatically come with the logger, just the settings passed to logging.basicConfig do. So every time a logger is created, the handlers have to be added.
Related Issue
Critical and Error level log messages not written to the screen #397
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: