Yet another very little indicating is, "place the code earlier mentioned the code that employs it", And so the logging ought to be close to the prime, probably in \utilities.
In C a variable inside a file say https://medium.com/@linkdaddy/what-is-a-source-file-226b0fd56812