{"id":3201,"date":"2019-11-07T22:47:02","date_gmt":"2019-11-07T13:47:02","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=3201"},"modified":"2019-11-07T22:47:04","modified_gmt":"2019-11-07T13:47:04","slug":"springboot-log_file_is_undefined-%e5%87%a1%e3%83%9f%e3%82%b9","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2019\/11\/07\/springboot-log_file_is_undefined-%e5%87%a1%e3%83%9f%e3%82%b9\/","title":{"rendered":"SpringBoot LOG_FILE_IS_UNDEFINED \u51e1\u30df\u30b9"},"content":{"rendered":"\n<p>\u306a\u305c\u304b\u8d77\u52d5\u3057\u305fSpringBoot\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304cLOG_FILE_IS_UNDEFINED\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<p>logback-spring.xml\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308b\u306e\u3067\/var\/tmp\u306b\u51fa\u308b\u306f\u305a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>&lt;!--\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u7528\u8a2d\u5b9a -->\n<\/em>&lt;<strong>springProfile name=\"default\"<\/strong>>\n    &lt;<strong>property name=\"LOG_FILE\" value=\"\/var\/tmp\/spring_default.log\" <\/strong>\/>\n&lt;\/<strong>springProfile<\/strong>>\n\n<em>&lt;!--develop\u74b0\u5883\u7528\u8a2d\u5b9a -->\n<\/em>&lt;<strong>springProfile name=\"local\"<\/strong>>\n    &lt;<strong>property name=\"LOG_FILE\" value=\"\/var\/tmp\/spring_local.log\" <\/strong>\/>\n&lt;\/<strong>springProfile<\/strong>>\n\n&lt;<strong>appender name=\"FILE\" class=\"ch.qos.logback.core.rolling.RollingFileAppender\"<\/strong>>\n    &lt;<strong>encoder<\/strong>>\n        &lt;<strong>pattern<\/strong>>${FILE_LOG_PATTERN}&lt;\/<strong>pattern<\/strong>>\n    &lt;\/<strong>encoder<\/strong>>\n    &lt;<strong>file<\/strong>>${LOG_FILE}&lt;\/<strong>file<\/strong>>\n    &lt;<strong>rollingPolicy class=\"ch.qos.logback.core.rolling.TimeBasedRollingPolicy\"<\/strong>>\n        &lt;<strong>fileNamePattern<\/strong>>${LOG_FILE}.%d{yyyyMMdd}&lt;\/<strong>fileNamePattern<\/strong>>\n        &lt;<strong>maxHistory<\/strong>>5&lt;\/<strong>maxHistory<\/strong>>\n    &lt;\/<strong>rollingPolicy<\/strong>>\n&lt;\/<strong>appender<\/strong>><\/pre>\n\n\n\n<p>\u3093\u3067\u3088\u304f\u3088\u304f\u898b\u308b\u3068profile\u304clocal\u3068default\u3057\u304b\u306a\u304f\u3066\u3001\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u3066\u3044\u305f\u306e\u306fprod\u3067\u52d5\u304b\u3057\u3066\u3044\u305f\u306e\u3067${LOG_FILE}\u304c\u672a\u5b9a\u7fa9\u306e\u5909\u6570\u6271\u3044\u306b\u306a\u3063\u3066\u3044\u305f\u3068\u3044\u3046\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306a\u305c\u304b\u8d77\u52d5\u3057\u305fSpringBoot\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304cLOG_FIL &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2019\/11\/07\/springboot-log_file_is_undefined-%e5%87%a1%e3%83%9f%e3%82%b9\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[549],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3201"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=3201"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3201\/revisions"}],"predecessor-version":[{"id":3202,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/3201\/revisions\/3202"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=3201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=3201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=3201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}