logging
Log層級(輕至重):debug --> info --> warning --> error --> critical
參考資料: http://zwindr.blogspot.com/2016/08/python-logging.html
multiprocessing-logging
https://hant.helplib.com/GitHub/article_124489
如果在multiprocessing時使用logging,需在全域位置宣告logger
http://hk.voidcc.com/question/p-voslmrpl-ru.html
或者用queue來存放訊息,然後統一輸出
https://stackoverflow.com/questions/11515944/how-to-use-multiprocessing-queue-in-python
https://morvanzhou.github.io/tutorials/python-basic/multiprocessing/3-queue/
Last updated