Separating them from logging.c allows them to be shared between the real logging.c and the new stub no-logging.c.