An additional very little saying is, "put the code higher than the code that utilizes it", Hence the logging should be close to the leading, maybe in \utilities.
In C a variable inside a file say illustration.c is https://macrobookmarks.com/story17704761/the-single-best-strategy-to-use-for-what-is-a-source-file