A further minor declaring is, "place the code previously mentioned the code that uses it", so the logging really should be near the top rated, possibly in \utilities.
after the prototype has been declared, it's https://medium.com/@linkdaddy/what-is-a-source-file-226b0fd56812