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)