Small improvements

In particular, logging.swift now initializes its (private) global variables properly, instead of checking every time.