Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有日志记录设置。特别是,我有 SMTPHandler。我想让它异步发生。我想用芹菜来做到这一点。那可能吗?
import logging logger = logging.getLogger("logger") mail_handler = STMPHandler(...) mail_handler.setLevel(logging.ERROR) ... logger.addHandler(mail_handler)