1

我有日志记录设置。特别是,我有 SMTPHandler。我想让它异步发生。我想用芹菜来做到这一点。那可能吗?

import logging
logger = logging.getLogger("logger")

mail_handler = STMPHandler(...)
mail_handler.setLevel(logging.ERROR)
...
logger.addHandler(mail_handler)
4

0 回答 0