<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>ランキング参加中Python Pythonでコードを書いていると、 print() でデバッグするのがそろそろ限界かもしれない と感じる瞬間があるのではないでしょうか。 この記事では、Python標準の logging を使って print() を卒業する ところから、実務でそのまま使える設定（dictConfig・ログローテーション・JSON出力）までを一気に解説します。動作確認は2026年7月時点の最新安定版 Python 3.14 で行っています。 この記事の対象者 なぜlogを書くのか？ loggerの始め方 まずlogレベルを知る 設定の仕方 書き出せるフォーマット サンプルコード …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2024%2F09%2F20%2F222934&quot; title=&quot;【Python】print()を卒業してloggerを始める - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-20 22:29:34</published>
  <title>【Python】print()を卒業してloggerを始める</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2024/09/20/222934</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
