<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fallpoke</author_name>
  <author_url>https://blog.hatena.ne.jp/fallpoke/</author_url>
  <blog_title>誰かの技術置き場</blog_title>
  <blog_url>https://fallpoke-tech.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>備忘録</anon>
  </categories>
  <description>お疲れ様です。 Pythonの標準モジュールのloggingを使ってログを表示する際、インストールした他のライブラリに設定されたログが邪魔になることがありました。 そういう時にライブラリごとに個別にログレベルを設定して表示を制限する方法があったのでそれをメモ。 開発版と本番でプログラムのログレベルの設定を切り替えたりする際にも使えると思います。 ロガーを含むライブラリ例 urllib3 boto3 pymongo ライブラリごとに個別にログレベルを設定する方法 プログラム全体のログレベルはDEBUGで特定のライブラリのログだけWARNINGに設定した例です。 こうすることにより、自分が設定した…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffallpoke-tech.hatenadiary.jp%2Fentry%2F2026%2F04%2F04%2F220411&quot; title=&quot;設定されたloggerのログレベルを個別に設定する方法【備忘録】 - 誰かの技術置き場&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>2026-04-04 22:04:11</published>
  <title>設定されたloggerのログレベルを個別に設定する方法【備忘録】</title>
  <type>rich</type>
  <url>https://fallpoke-tech.hatenadiary.jp/entry/2026/04/04/220411</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
