{"id":2690,"date":"2015-07-16T09:00:23","date_gmt":"2015-07-16T01:00:23","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2690"},"modified":"2015-07-16T09:18:11","modified_gmt":"2015-07-16T01:18:11","slug":"qlog-%e5%a2%9e%e5%8a%a0%e4%ba%86%e6%8c%89%e5%a4%a9%e5%88%86%e5%89%b2%e6%96%87%e4%bb%b6%e6%97%a5%e5%bf%97%e7%9a%84%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2690","title":{"rendered":"[QLog] &#8211; \u589e\u52a0\u4e86\u6309\u5929\u5206\u5272\u6587\u4ef6\u65e5\u5fd7\u7684\u529f\u80fd"},"content":{"rendered":"<h4>\u3010\u66f4\u65b0\u8bf4\u660e\u3011<\/h4>\n<p>\u6309\u6587\u4ef6\u8bb0\u5f55\u65e5\u5fd7\u65f6\uff0c\u901a\u8fc7 SetDefaultLogFile \u51fd\u6570\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u6309\u5929\u751f\u6210\u65e5\u5fd7\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e00\u65e6\u65e5\u5fd7\u65e5\u671f\u5207\u6362\u4e3a\u7b2c\u4e8c\u5929\uff0c\u5c31\u4f1a\u5c06\u65e7\u7684\u65e5\u5fd7\u6587\u4ef6\u4fdd\u5b58\u4e3a\u72ec\u7acb\u7684\u6587\u4ef6\uff0c\u4ece\u800c\u65b9\u4fbf\u67e5\u9605\u3002<\/p>\n<p>SetDefaultLogFile \u53c8\u4ee5\u4e0b\u51e0\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u5bf9\u65e5\u5fd7\u6587\u4ef6\u7684\u751f\u6210\u65b9\u5f0f\u548c\u6587\u4ef6\u540d\u8fdb\u884c\u9650\u5236\uff1a<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>AFileName :\u00a0\u9ed8\u8ba4\u7684\u65e5\u5fd7\u6587\u4ef6\u540d\uff0c\u5982\u679c\u8bbe\u7f6e\u4e3a\u7a7a\uff0c\u5219\u53d6\u5f53\u524d\u7a0b\u5e8f\u7684\u6587\u4ef6\u540d\u52a0\u4e0a &#8220;.log&#8221; \u6269\u5c55\u540d\uff1b<\/li>\n<li>AMaxSize : \u6bcf\u4e2a\u65e5\u5fd7\u6587\u4ef6\u7684\u6700\u5927\u5927\u5c0f\uff0c\u9ed8\u8ba4\u4e3a 2 MB\uff1b<\/li>\n<li>ARenameHistory : \u5982\u679c\u5386\u53f2\u65e5\u5fd7\u6587\u4ef6\u5df2\u5b58\u5728\uff0c\u662f\u5426\u91cd\u547d\u540d\uff0c\u5982\u679c\u4e0d\u91cd\u547d\u540d\uff0c\u5219\u4f1a\u5728\u5386\u53f2\u65e5\u5fd7\u6587\u4ef6\u540e\u9762\u8ffd\u52a0\u65e5\u5fd7\uff1b<\/li>\n<li>AOneFilePerDay : \u662f\u5426\u6309\u65e5\u671f\u5206\u9694\u65e5\u5fd7\u6587\u4ef6\uff0c\u5982\u679c\u8bbe\u7f6e\u4e3aTrue\uff0c\u5f53\u68c0\u6d4b\u5230\u65e5\u671f\u53d8\u66f4\u65f6\uff0c\u4f1a\u5c06\u5386\u53f2\u65e5\u5fd7\u6587\u4ef6\u91cd\u547d\u540d\uff0c\u7136\u540e\u751f\u6210\u65b0\u7684\u65e5\u5fd7\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>SetDefaultLogFile \u51fd\u6570\u4e00\u822c\u63a8\u8350\u5927\u5bb6\u5728\u7a0b\u5e8f\u4e00\u542f\u52a8\u5c31\u8bbe\u7f6e\uff0c\u53ea\u6709\u8bbe\u7f6e\u4e86\u5b83\uff0cPostLog \u6295\u5bc4\u7684\u65e5\u5fd7\u8bb0\u5f55\u624d\u4f1a\u88ab\u8bb0\u5f55\u5230\u6587\u4ef6\u4e2d\u3002<\/p>\n<h4>\u3010\u66f4\u65b0\u7ea7\u522b\u3011<\/h4>\n<p>\u53ef\u9009<\/p>\n<h4>\u3010\u7279\u522b\u611f\u8c22\u3011<\/h4>\n<p>\u9752\u6625\u7b49\u7fa4\u91cc\u7684\u670b\u53cb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u66f4\u65b0\u8bf4\u660e\u3011 \u6309\u6587\u4ef6\u8bb0\u5f55\u65e5\u5fd7\u65f6\uff0c\u901a\u8fc7 S [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,135,2],"tags":[],"class_list":["post-2690","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qlog","category-update"],"views":4773,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2690"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2690\/revisions"}],"predecessor-version":[{"id":2692,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2690\/revisions\/2692"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}