Turns out you cannot define a "Logging" module before using Logging.