nl: formated with value under 'target' key of config dictionary and e. otherwise if klass is a subclass of logging.handlers.SMTPHandler and string 'mailhost' is contained in config,
code: elif issubclass ( klass , logging . handlers . SMTPHandler ) and 'mailhost' in config :