Update 01Nov2022 - After Pat's comment, I decided to create a discrete repo, ArcPy-Logger, to make it easier to use. In the process, I also updated the Gist based on a few tweaks I made, and added brief documentation as well.
Especially with long-running or even scheduled tasks,