Python を使って開発していると、つい print("ここまで来た") のように print でデバッグしがちですが、 本番運用・データ処理・API 開発では print は完全に力不足 です。 そこで登場するのが logging。 標準ライブラリなのに「使いこなすと世界が変わる」レベルで ...
I have worker thread(s) that use the logger. In the main thread, I occasionally need to ask the user to take some action. Which means I need to suppress the logger from actually printing until the ...