logger is now a module-level object.