Move log struct properties into loop() local vars.

Questions are called out within the pr.
not 100% sure about adding parameters to the `loop()` function? none of the other `loop()` functions I've seen take arguments, so I'm not sure this is something that's discouraged.