Fix up debugging and make it part of the extension itself.  Debugging does not belong to the Logger class.