{"published":"2023-06-10 01:50:11","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/c/cateiru/20230610/20230610014837.png","provider_url":"https://hatena.blog","title":"\u3010\u5099\u5fd8\u9332\u3011SQLBoiler\u306e\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092zap\u7d4c\u7531\u3067\u51fa\u529b\u3059\u308b","author_name":"cateiru","blog_title":"cateiru \u306e\u30d6\u30ed\u30b0","author_url":"https://blog.hatena.ne.jp/cateiru/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cateiru.com%2Fentry%2F2023%2F06%2F10%2F015011\" title=\"\u3010\u5099\u5fd8\u9332\u3011SQLBoiler\u306e\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092zap\u7d4c\u7531\u3067\u51fa\u529b\u3059\u308b - cateiru \u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","url":"https://blog.cateiru.com/entry/2023/06/10/015011","blog_url":"https://blog.cateiru.com/","categories":["\u6280\u8853"],"version":"1.0","description":"SQLBoiler\u3067\u306f\u3001Debug Logging\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u6709\u52b9\u306b\u3059\u308b\u3068SQL\u30af\u30a8\u30ea\u304c\u5b9f\u884c\u3055\u308c\u308b\u305f\u3073\u306b\u6a19\u6e96\u51fa\u529b\u3055\u308c\u307e\u3059\u3002 boil.DebugMode = true \u3053\u306e\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306e\u51fa\u529b\u5148\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067os.Stdout\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304cboil.DebugWriter\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u81ea\u7531\u306b\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Go\u306e\u30ed\u30ae\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u6709\u540d\u306azap\u3067\u3053\u306e\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 TL;DR stdOutLogger, err := zap.NewStdLogAt(L, zapcore.DebugLevel) if err != nil { panic\u2026"}