{"id":9969,"date":"2021-03-16T04:05:31","date_gmt":"2021-03-15T19:05:31","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9969"},"modified":"2021-03-16T04:06:01","modified_gmt":"2021-03-15T19:06:01","slug":"%e3%80%90cakephp%e3%80%91logdebug%e3%81%8c%e5%87%ba%e5%8a%9b%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9969","title":{"rendered":"\u3010CakePHP\u3011Log::debug\u304c\u51fa\u529b\u3055\u308c\u306a\u3044\u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"\n<p>CakePHP3\u3067\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u3067\u30ed\u30b0\u51fa\u529b\u3059\u308b\u306e\u306b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>use<\/em> Cake\\Log\\Log;<\/pre>\n\n\n\n<p>LOG::debug(&#8220;\u51fa\u529b\u3057\u305f\u3044\u5185\u5bb9&#8221;);<\/p>\n\n\n\n<p>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u3053\u308c\u3092\u81ea\u5206\u306e\u958b\u767a\u74b0\u5883\u3067\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u306a\u3044\u73fe\u8c61\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u56f0\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u539f\u56e0\u3068\u3057\u3066\u306f\u3001<\/p>\n\n\n\n<p>\/config\/app.php\u3000\u5185\u306e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'debug' => [\n            'className' => 'Cake\\Log\\Engine\\FileLog',\n            'path' => LOGS,\n            'file' => date(\"Ymd\").'_debug',\n            'url' => env('LOG_DEBUG_URL', null),\n            'scopes' => false,\n            'levels' => ['notice', 'info', 'debug'],\n        ],<\/code><\/pre>\n\n\n\n<p>\u3067\u3001scopes = true\u3000\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u539f\u56e0\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092 scopes = false \u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3071\u3063\u3068\u898b\u3067\u306f\u3001true\u306b\u3059\u308b\u3053\u3068\u3067\u51fa\u529b\u3055\u308c\u308b\u3093\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001true\u3060\u3068\u9006\u306b\u51fa\u529b\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP3\u3067\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u3067\u30ed\u30b0\u51fa\u529b\u3059\u308b\u306e\u306b use Cake\\Log\\Log; LOG::debug(&#8220;\u51fa\u529b\u3057\u305f\u3044\u5185\u5bb9&#8221;); \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165,131],"tags":[],"class_list":["post-9969","post","type-post","status-publish","format-standard","hentry","category-cakephp","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9969"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9969\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}