# 新人エンジニア向け:Pythonのロギング(logging)完全チートシート ## 📌 ロギングとは? **ロギング = プログラムの動作記録を残す仕組み** ```python # 初心者がやりがち print("処理開始") print(f"エラー: {error}") # 実務ではこう書く import logging logging.info ...
はじめに前回、共通Loggerモジュールの作成方法についてご紹介しました。 今回は、ログファイル名に実行日を含める方法についてご紹介します。 日付ごとにログファイルを分けておくと、特定の日のログを探しやすく、ツールを長期運用する場合、古い ...
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 ...