NaomiProject / Naomi

The Naomi Project is an open source, technology agnostic platform for developing always-on, voice-controlled applications!
https://projectnaomi.com/
MIT License
242 stars 47 forks source link

Remove default location from logfile #399

Closed aaronchantrill closed 4 months ago

aaronchantrill commented 4 months ago

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: