Rework logging to mostly avoid using varargs

Rework logging to mostly avoid using varargs