A different tiny expressing is, "set the code over the code that takes advantage of it", And so the logging ought to be near the top, maybe in \utilities.
I use this pattern throughout a number of files. So as a way to https://allyourbookmarks.com/story17638246/the-basic-principles-of-source-files