extract the common statter stuff to an internal type
make it easier to assert log output