An additional tiny expressing is, "set the code higher than the code that utilizes it", Therefore the logging must be near the top, probably in \utilities.
I use this sample across several files. So in order to retain https://medium.com/@linkdaddy/what-is-a-source-file-226b0fd56812