Logging Debug Errors to File

What’s a good way to log DEBUG errors to a file when you have a medium - large size project with multiple class files? I’m guessing there is a better way than to have every class import logging or having to pass around a logging object. Is there a way to use Panda’s instance of logging since it’s global?


notify-level debug
notify-output logfile.txt

Excellent. Thank you.