Yet more global-removal. The static variables in logging.c are now