A further tiny expressing is, "place the code above the code that utilizes it", Therefore the logging should be near the top, maybe in \utilities.
The first step the compiler will do on the source file is run the https://apriltsbg680340.theideasblog.com/28894480/what-is-a-source-file-fundamentals-explained