<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sz_dr</author_name>
  <author_url>https://blog.hatena.ne.jp/sz_dr/</author_url>
  <blog_title>人間だったら考えて</blog_title>
  <blog_url>https://www.szdrblog.info/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>この記事は何？ Slack通知用ハンドラの定義 Slackに通知するログを振り分ける ログレベルでSlackに通知するログを振り分けるのは？ 参考 この記事は何？ PythonでログをSlackに通知したいとき、logging.handlers.HTTPHandlerを継承したSlackHandlerのようなSlack通知用ハンドラを定義したくなると思います。ここで、Slackになんでもかんでもログを通知してしまうとSlackのメッセージがどんどん流れてしまうため、重要なログだけ通知したくなります。これを実現する方法として、例えばログレベルがWARN以上のログを飛ばすなどが考えられます。しかし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.szdrblog.info%2Fentry%2F2020%2F08%2F15%2F002418&quot; title=&quot;【Python】フィルタを利用してSlackに通知するログを振り分ける - 人間だったら考えて&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-15 00:24:18</published>
  <title>【Python】フィルタを利用してSlackに通知するログを振り分ける</title>
  <type>rich</type>
  <url>https://www.szdrblog.info/entry/2020/08/15/002418</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
