<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
    <anon>memo</anon>
    <anon>go-chi</anon>
    <anon>log</anon>
  </categories>
  <description>go-chiは、あまり素のnet/httpからかけ離れたラッピングを行っては居ないので、goでのweb APIの取扱を考えたりするのに便利なのですが、本番運用のことを考えるとJSON logが欲しくなったりしますね。 go-chiのloggerミドルウェアの出力は綺麗なのですが、これをJSON logにしたい。 httplog middleware一覧の部分で紹介sれているhttplogが便利です。 github.com package main import ( &quot;log&quot; &quot;net/http&quot; &quot;os&quot; &quot;github.com/go-chi/chi&quot; &quot;github.com/go-chi/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F09%2F22%2F215347&quot; title=&quot;go-chi/chiでJSON logを手軽に使う方法 - podhmo&amp;#39;s diary&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>2020-09-22 21:53:47</published>
  <title>go-chi/chiでJSON logを手軽に使う方法</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2020/09/22/215347</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
