Used module_function and class self to simplify MailCatcher logger setup.