{"id":75330,"date":"2026-02-12T02:34:17","date_gmt":"2026-02-11T18:34:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/75330.html"},"modified":"2026-02-12T02:34:17","modified_gmt":"2026-02-11T18:34:17","slug":"c%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%b7%a5%e5%85%b7%ef%bc%9agflags%e4%b8%8espdlog%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/75330.html","title":{"rendered":"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218"},"content":{"rendered":"<p>\u597d\u7684&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e gflags \u548c spdlog \u5728 C&#043;&#043; \u9879\u76ee\u4e2d\u534f\u540c\u4f7f\u7528\u7684\u5b9e\u6218\u6307\u5357\u3002\u5b83\u4eec\u5206\u522b\u64c5\u957f\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u89e3\u6790\u548c\u9ad8\u6027\u80fd\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u662f\u5f00\u53d1\u547d\u4ee4\u884c\u5de5\u5177\u7684\u5f3a\u529b\u7ec4\u5408\u3002<\/p>\n<hr \/>\n<h4>\u6838\u5fc3\u7ec4\u4ef6\u7b80\u4ecb<\/h4>\n<li>gflags: \u4e00\u4e2a\u7528\u4e8e\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e93\u3002\n<ul>\n<li>\u4f18\u70b9: \u7c7b\u578b\u5b89\u5168\u3001\u652f\u6301\u9ed8\u8ba4\u503c\u3001\u652f\u6301\u4ece\u6587\u4ef6\u52a0\u8f7d\u914d\u7f6e\u3001\u652f\u6301\u6821\u9a8c\u3001\u81ea\u52a8\u751f\u6210\u5e2e\u52a9\u4fe1\u606f\u3002<\/li>\n<li>\u6838\u5fc3\u6982\u5ff5: DEFINE_ \u5b8f\u5b9a\u4e49\u53c2\u6570&#xff0c;ParseCommandLineFlags \u89e3\u6790\u547d\u4ee4\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>spdlog: \u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u6613\u7528\u7684 C&#043;&#043; \u65e5\u5fd7\u5e93\u3002\n<ul>\n<li>\u4f18\u70b9: \u6781\u9ad8\u7684\u901f\u5ea6\u3001\u4e30\u5bcc\u7684\u7279\u6027&#xff08;\u5f02\u6b65\u65e5\u5fd7\u3001\u591a\u79cd\u63a5\u6536\u5668\u3001\u591a\u79cd\u683c\u5f0f\u5316&#xff09;\u3001\u7ebf\u7a0b\u5b89\u5168\u3001\u6613\u7528\u3002<\/li>\n<li>\u6838\u5fc3\u6982\u5ff5: logger \u5bf9\u8c61\u3001sink \u63a5\u6536\u5668\u3001level \u65e5\u5fd7\u7ea7\u522b\u3002<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>\u5b9e\u6218\u6b65\u9aa4&#xff1a;\u96c6\u6210\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h4>\n<h5>\u6b65\u9aa4 1: \u5b89\u88c5\u4f9d\u8d56<\/h5>\n<p>\u786e\u4fdd\u9879\u76ee\u4e2d\u5df2\u5305\u542b gflags \u548c spdlog\u3002\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668&#xff08;\u5982 vcpkg, conan&#xff09;\u6216\u6e90\u7801\u96c6\u6210\u3002<\/p>\n<h5>\u6b65\u9aa4 2: \u5b9a\u4e49\u547d\u4ee4\u884c\u53c2\u6570 (gflags)<\/h5>\n<p>\u5728\u4f60\u7684\u4e3b\u7a0b\u5e8f&#xff08;\u5982 main.cpp&#xff09;\u4e2d\u5b9a\u4e49\u9700\u8981\u7684\u53c2\u6570&#xff1a;<\/p>\n<p>#include &lt;gflags\/gflags.h&gt;<\/p>\n<p>\/\/ \u5b9a\u4e49\u53c2\u6570\u53ca\u5176\u7c7b\u578b\u3001\u9ed8\u8ba4\u503c\u3001\u5e2e\u52a9\u4fe1\u606f<br \/>\nDEFINE_bool(verbose, false, &#034;Enable verbose output&#034;); \/\/ \u5e03\u5c14\u578b<br \/>\nDEFINE_string(logfile, &#034;&#034;, &#034;Path to log file (default: stdout)&#034;); \/\/ \u5b57\u7b26\u4e32\u578b<br \/>\nDEFINE_int32(port, 8080, &#034;Listening port&#034;); \/\/ \u6574\u578b<\/p>\n<h5>\u6b65\u9aa4 3: \u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570 (gflags)<\/h5>\n<p>\u5728 main \u51fd\u6570\u5f00\u59cb\u5904\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570&#xff1a;<\/p>\n<p>int main(int argc, char** argv) {<br \/>\n    \/\/ \u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570&#xff0c;\u5904\u7406 &#8211;help<br \/>\n    gflags::ParseCommandLineFlags(&amp;argc, &amp;argv, true);<\/p>\n<p>    \/\/ \u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u903b\u8f91\u4ece\u8fd9\u91cc\u5f00\u59cb&#8230;<br \/>\n    \/\/ \u8bbf\u95ee\u53c2\u6570: FLAGS_verbose, FLAGS_logfile, FLAGS_port<\/p>\n<p>    return 0;<br \/>\n}<\/p>\n<h5>\u6b65\u9aa4 4: \u521d\u59cb\u5316\u65e5\u5fd7\u7cfb\u7edf (spdlog)<\/h5>\n<p>\u6839\u636e gflags \u53c2\u6570\u914d\u7f6e spdlog&#xff1a;<\/p>\n<p>#include &lt;spdlog\/spdlog.h&gt;<br \/>\n#include &lt;spdlog\/sinks\/stdout_color_sinks.h&gt;<br \/>\n#include &lt;spdlog\/sinks\/basic_file_sink.h&gt;<br \/>\n#include &lt;memory&gt;<br \/>\n#include &lt;vector&gt;<\/p>\n<p>int main(int argc, char** argv) {<br \/>\n    gflags::ParseCommandLineFlags(&amp;argc, &amp;argv, true);<\/p>\n<p>    \/\/ 1. \u521b\u5efa\u65e5\u5fd7\u63a5\u6536\u5668 (sinks)<br \/>\n    std::vector&lt;spdlog::sink_ptr&gt; sinks;<\/p>\n<p>    \/\/ \u63a7\u5236\u53f0\u63a5\u6536\u5668 (\u603b\u662f\u542f\u7528)<br \/>\n    auto console_sink &#061; std::make_shared&lt;spdlog::sinks::stdout_color_sink_mt&gt;();<br \/>\n    sinks.push_back(console_sink);<\/p>\n<p>    \/\/ \u6587\u4ef6\u63a5\u6536\u5668 (\u5982\u679c\u6307\u5b9a\u4e86 logfile \u53c2\u6570)<br \/>\n    if (!FLAGS_logfile.empty()) {<br \/>\n        try {<br \/>\n            auto file_sink &#061; std::make_shared&lt;spdlog::sinks::basic_file_sink_mt&gt;(FLAGS_logfile, true);<br \/>\n            sinks.push_back(file_sink);<br \/>\n        } catch (const spdlog::spdlog_ex&amp; ex) {<br \/>\n            \/\/ \u5904\u7406\u6587\u4ef6\u6253\u5f00\u5931\u8d25<br \/>\n            std::cerr &lt;&lt; &#034;Log file init failed: &#034; &lt;&lt; ex.what() &lt;&lt; std::endl;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ 2. \u521b\u5efa\u7ec4\u5408\u63a5\u6536\u5668\u7684\u65e5\u5fd7\u5668<br \/>\n    auto logger &#061; std::make_shared&lt;spdlog::logger&gt;(&#034;main&#034;, begin(sinks), end(sinks));<\/p>\n<p>    \/\/ 3. \u8bbe\u7f6e\u5168\u5c40\u65e5\u5fd7\u7ea7\u522b (\u6839\u636e verbose \u53c2\u6570)<br \/>\n    if (FLAGS_verbose) {<br \/>\n        logger-&gt;set_level(spdlog::level::debug); \/\/ \u8be6\u7ec6\u6a21\u5f0f\u663e\u793a debug \u53ca\u4ee5\u4e0a<br \/>\n        logger-&gt;flush_on(spdlog::level::debug); \/\/ \u9047\u5230 debug \u53ca\u4ee5\u4e0a\u7ea7\u522b\u7acb\u5373\u5237\u65b0<br \/>\n    } else {<br \/>\n        logger-&gt;set_level(spdlog::level::info); \/\/ \u9ed8\u8ba4\u663e\u793a info \u53ca\u4ee5\u4e0a<br \/>\n        logger-&gt;flush_on(spdlog::level::warn); \/\/ \u9047\u5230 warn \u53ca\u4ee5\u4e0a\u7ea7\u522b\u7acb\u5373\u5237\u65b0<br \/>\n    }<\/p>\n<p>    \/\/ 4. \u6ce8\u518c\u4e3a\u5168\u5c40\u65e5\u5fd7\u5668 (\u53ef\u9009&#xff0c;\u65b9\u4fbf\u4f7f\u7528 spdlog::info() \u7b49)<br \/>\n    spdlog::set_default_logger(logger);<\/p>\n<p>    \/\/ 5. \u8bbe\u7f6e\u65e5\u5fd7\u683c\u5f0f (\u53ef\u9009)<br \/>\n    spdlog::set_pattern(&#034;[%Y-%m-%d %H:%M:%S.%e] [%^%l%$] [thread %t] %v&#034;);<\/p>\n<p>    \/\/ \u793a\u4f8b\u65e5\u5fd7\u8f93\u51fa<br \/>\n    SPDLOG_INFO(&#034;Application starting, port: {}&#034;, FLAGS_port);<br \/>\n    SPDLOG_DEBUG(&#034;This is a debug message (only visible if &#8211;verbose is set)&#034;);<\/p>\n<p>    \/\/ &#8230; \u5e94\u7528\u7a0b\u5e8f\u903b\u8f91<\/p>\n<p>    \/\/ \u7a0b\u5e8f\u9000\u51fa\u524d\u786e\u4fdd\u65e5\u5fd7\u5237\u65b0<br \/>\n    spdlog::shutdown();<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>http:\/\/my.tv.sohu.com\/us\/441086388\/700128285.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODI4NS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128165.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODE2NS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128170.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODE3MC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128178.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODE3OC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128339.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODMzOS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128184.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODE4NC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128509.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODUwOS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128434.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODQzNC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128520.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODUyMC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128199.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODE5OS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128442.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODQ0Mi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128526.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODUyNi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128610.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODYxMC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128369.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODM2OS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128538.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODUzOC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128453.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODQ1My5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128553.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODU1My5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128469.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODQ2OS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128476.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODQ3Ni5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128644.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODY0NC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128713.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODcxMy5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128724.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODcyNC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128814.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODgxNC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128691.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODY5MS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128750.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODc1MC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129011.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTAxMS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128842.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODg0Mi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129022.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTAyMi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128776.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODc3Ni5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128943.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODk0My5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128784.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODc4NC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128859.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODg1OS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128946.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODk0Ni5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128787.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODc4Ny5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128872.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODg3Mi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129062.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTA2Mi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128965.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODk2NS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129066.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTA2Ni5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129112.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTExMi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700128984.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyODk4NC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129217.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTIxNy5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129134.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTEzNC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129405.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTQwNS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129322.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTMyMi5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129151.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTE1MS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129341.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTM0MS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129258.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTI1OC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129170.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTE3MC5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129359.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTM1OS5zaHRtbA&#061;&#061;.html<br \/>\nhttp:\/\/my.tv.sohu.com\/us\/441086388\/700129178.shtml<br \/>\nhttps:\/\/tv.sohu.com\/v\/dXMvNDQxMDg2Mzg4LzcwMDEyOTE3OC5zaHRtbA&#061;&#061;.html<br \/>\n\u00a0<\/p>\n<h5>\u6b65\u9aa4 5: \u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u65e5\u5fd7<\/h5>\n<p>\u4f7f\u7528 spdlog \u7684\u5b8f\u8fdb\u884c\u65e5\u5fd7\u8bb0\u5f55&#xff1a;<\/p>\n<p>void process_data(const std::string&amp; data) {<br \/>\n    SPDLOG_INFO(&#034;Processing data: {}&#034;, data);<br \/>\n    try {<br \/>\n        \/\/ &#8230; \u4e1a\u52a1\u903b\u8f91<br \/>\n        SPDLOG_DEBUG(&#034;Step 1 completed&#034;);<br \/>\n        \/\/ &#8230; \u66f4\u591a\u903b\u8f91<br \/>\n    } catch (const std::exception&amp; e) {<br \/>\n        SPDLOG_ERROR(&#034;Error processing data: {}&#034;, e.what());<br \/>\n        throw;<br \/>\n    }<br \/>\n    SPDLOG_INFO(&#034;Data processed successfully&#034;);<br \/>\n}<\/p>\n<h5>\u6b65\u9aa4 6: \u7f16\u8bd1\u4e0e\u8fd0\u884c<\/h5>\n<p>\u7f16\u8bd1\u7a0b\u5e8f\u5e76\u94fe\u63a5 gflags \u548c spdlog \u5e93\u3002\u8fd0\u884c\u65f6\u53ef\u4f7f\u7528 gflags \u5b9a\u4e49\u7684\u53c2\u6570&#xff1a;<\/p>\n<p># \u9ed8\u8ba4\u8fd0\u884c (\u65e5\u5fd7\u7ea7\u522b info, \u8f93\u51fa\u5230\u63a7\u5236\u53f0)<br \/>\n.\/myapp<\/p>\n<p># \u542f\u7528\u8be6\u7ec6\u65e5\u5fd7 (debug \u7ea7\u522b)<br \/>\n.\/myapp &#8211;verbose<\/p>\n<p># \u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6<br \/>\n.\/myapp &#8211;logfile&#061;app.log<\/p>\n<p># \u540c\u65f6\u6307\u5b9a<br \/>\n.\/myapp &#8211;verbose &#8211;logfile&#061;debug.log &#8211;port&#061;9090<\/p>\n<p># \u67e5\u770b\u5e2e\u52a9\u4fe1\u606f<br \/>\n.\/myapp &#8211;help<\/p>\n<hr \/>\n<h4>\u6027\u80fd\u4f18\u5316\u5efa\u8bae<\/h4>\n<li>\u5f02\u6b65\u65e5\u5fd7: \u5bf9\u4e8e\u9ad8\u541e\u5410\u91cf\u573a\u666f&#xff0c;\u4f7f\u7528 spdlog \u7684\u5f02\u6b65\u65e5\u5fd7\u6a21\u5f0f (spdlog::create_async) \u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6027\u80fd&#xff0c;\u51cf\u5c11\u65e5\u5fd7\u5199\u5165\u5bf9\u4e3b\u7ebf\u7a0b\u7684\u5f71\u54cd\u3002<\/li>\n<li>\u6279\u91cf\u5237\u65b0: \u8c03\u6574 flush_on \u7ea7\u522b\u6216\u4f7f\u7528 spdlog::flush_every \u8bbe\u7f6e\u5b9a\u65f6\u5237\u65b0&#xff0c;\u907f\u514d\u6bcf\u6761\u65e5\u5fd7\u90fd\u89e6\u53d1 I\/O \u64cd\u4f5c\u3002<\/li>\n<li>\u65e5\u5fd7\u7ea7\u522b: \u786e\u4fdd\u751f\u4ea7\u73af\u5883\u4e2d\u65e5\u5fd7\u7ea7\u522b\u8bbe\u7f6e\u5408\u7406&#xff08;\u5982 info&#xff09;&#xff0c;\u907f\u514d\u4e0d\u5fc5\u8981\u7684 debug\/trace \u65e5\u5fd7\u5f71\u54cd\u6027\u80fd\u3002\u901a\u8fc7 &#8211;verbose \u5f00\u5173\u5728\u8c03\u8bd5\u65f6\u542f\u7528\u8be6\u7ec6\u65e5\u5fd7\u3002<\/li>\n<li>\u6587\u4ef6\u63a5\u6536\u5668: basic_file_sink \u6027\u80fd\u5f88\u597d\u3002\u5bf9\u4e8e\u6781\u7aef\u573a\u666f&#xff0c;\u53ef\u4ee5\u8003\u8651 rotating_file_sink (\u6309\u5927\u5c0f\/\u65f6\u95f4\u5206\u5272) \u6216 daily_file_sink&#xff0c;\u4f46\u9700\u6ce8\u610f\u5176\u6027\u80fd\u5f00\u9500\u3002<\/li>\n<hr \/>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u7ed3\u5408 gflags \u548c spdlog \u63d0\u4f9b\u4e86&#xff1a;<\/p>\n<ul>\n<li>\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u914d\u7f6e: \u901a\u8fc7 gflags \u8f7b\u677e\u7ba1\u7406\u542f\u52a8\u53c2\u6570\u3002<\/li>\n<li>\u7075\u6d3b\u9ad8\u6548\u7684\u65e5\u5fd7: \u901a\u8fc7 spdlog \u5b9e\u73b0\u9ad8\u6027\u80fd\u3001\u53ef\u5b9a\u5236\u7684\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u65e5\u5fd7\u884c\u4e3a\u53ef\u7531\u547d\u4ee4\u884c\u53c2\u6570\u52a8\u6001\u63a7\u5236&#xff08;\u5982\u7ea7\u522b\u3001\u8f93\u51fa\u76ee\u6807&#xff09;\u3002<\/li>\n<li>\u6e05\u6670\u7684\u4ee3\u7801: \u53c2\u6570\u5b9a\u4e49\u548c\u65e5\u5fd7\u521d\u59cb\u5316\u96c6\u4e2d\u7ba1\u7406&#xff0c;\u4e1a\u52a1\u4ee3\u7801\u4e13\u6ce8\u4e8e\u6838\u5fc3\u903b\u8f91\u548c\u6e05\u6670\u7684\u65e5\u5fd7\u8bb0\u5f55\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u7ec4\u5408\u975e\u5e38\u9002\u5408\u5f00\u53d1\u9700\u8981\u7075\u6d3b\u914d\u7f6e\u548c\u9ad8\u6027\u80fd\u65e5\u5fd7\u8bb0\u5f55\u7684\u547d\u4ee4\u884c\u5de5\u5177\u548c\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u597d\u7684&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e gflags \u548c spdlog \u5728 C \u9879\u76ee\u4e2d\u534f\u540c\u4f7f\u7528\u7684\u5b9e\u6218\u6307\u5357\u3002\u5b83\u4eec\u5206\u522b\u64c5\u957f\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u89e3\u6790\u548c\u9ad8\u6027\u80fd\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u662f\u5f00\u53d1\u547d\u4ee4\u884c\u5de5\u5177\u7684\u5f3a\u529b\u7ec4\u5408\u3002\u6838\u5fc3\u7ec4\u4ef6\u7b80\u4ecbgflags: \u4e00\u4e2a\u7528\u4e8e\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e93\u3002\u4f18\u70b9: \u7c7b\u578b\u5b89\u5168\u3001\u652f\u6301\u9ed8\u8ba4\u503c\u3001\u652f\u6301\u4ece\u6587\u4ef6\u52a0\u8f7d\u914d\u7f6e\u3001\u652f\u6301\u6821\u9a8c\u3001\u81ea\u52a8\u751f\u6210\u5e2e\u52a9\u4fe1\u606f\u3002\u6838\u5fc3\u6982\u5ff5: DEFINE_ \u5b8f\u5b9a\u4e49\u53c2\u6570&#xff0c;ParseCommandLineFlags \u89e3\u6790\u547d\u4ee4\u884c\u3002<br \/>\nspdlog: \u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u6613\u7528\u7684 C \u65e5\u5fd7<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,426,427],"topic":[],"class_list":["post-75330","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-jvm","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/75330.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u597d\u7684&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e gflags \u548c spdlog \u5728 C \u9879\u76ee\u4e2d\u534f\u540c\u4f7f\u7528\u7684\u5b9e\u6218\u6307\u5357\u3002\u5b83\u4eec\u5206\u522b\u64c5\u957f\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u89e3\u6790\u548c\u9ad8\u6027\u80fd\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u662f\u5f00\u53d1\u547d\u4ee4\u884c\u5de5\u5177\u7684\u5f3a\u529b\u7ec4\u5408\u3002\u6838\u5fc3\u7ec4\u4ef6\u7b80\u4ecbgflags: \u4e00\u4e2a\u7528\u4e8e\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e93\u3002\u4f18\u70b9: \u7c7b\u578b\u5b89\u5168\u3001\u652f\u6301\u9ed8\u8ba4\u503c\u3001\u652f\u6301\u4ece\u6587\u4ef6\u52a0\u8f7d\u914d\u7f6e\u3001\u652f\u6301\u6821\u9a8c\u3001\u81ea\u52a8\u751f\u6210\u5e2e\u52a9\u4fe1\u606f\u3002\u6838\u5fc3\u6982\u5ff5: DEFINE_ \u5b8f\u5b9a\u4e49\u53c2\u6570&#xff0c;ParseCommandLineFlags \u89e3\u6790\u547d\u4ee4\u884c\u3002 spdlog: \u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u6613\u7528\u7684 C \u65e5\u5fd7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/75330.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-11T18:34:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75330.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/75330.html\",\"name\":\"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-11T18:34:17+00:00\",\"dateModified\":\"2026-02-11T18:34:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/75330.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/75330.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75330.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/75330.html","og_locale":"zh_CN","og_type":"article","og_title":"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u597d\u7684&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e gflags \u548c spdlog \u5728 C \u9879\u76ee\u4e2d\u534f\u540c\u4f7f\u7528\u7684\u5b9e\u6218\u6307\u5357\u3002\u5b83\u4eec\u5206\u522b\u64c5\u957f\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u89e3\u6790\u548c\u9ad8\u6027\u80fd\u65e5\u5fd7\u8bb0\u5f55&#xff0c;\u662f\u5f00\u53d1\u547d\u4ee4\u884c\u5de5\u5177\u7684\u5f3a\u529b\u7ec4\u5408\u3002\u6838\u5fc3\u7ec4\u4ef6\u7b80\u4ecbgflags: \u4e00\u4e2a\u7528\u4e8e\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\u7684\u5e93\u3002\u4f18\u70b9: \u7c7b\u578b\u5b89\u5168\u3001\u652f\u6301\u9ed8\u8ba4\u503c\u3001\u652f\u6301\u4ece\u6587\u4ef6\u52a0\u8f7d\u914d\u7f6e\u3001\u652f\u6301\u6821\u9a8c\u3001\u81ea\u52a8\u751f\u6210\u5e2e\u52a9\u4fe1\u606f\u3002\u6838\u5fc3\u6982\u5ff5: DEFINE_ \u5b8f\u5b9a\u4e49\u53c2\u6570&#xff0c;ParseCommandLineFlags \u89e3\u6790\u547d\u4ee4\u884c\u3002 spdlog: \u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u6613\u7528\u7684 C \u65e5\u5fd7","og_url":"https:\/\/www.wsisp.com\/helps\/75330.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-11T18:34:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/75330.html","url":"https:\/\/www.wsisp.com\/helps\/75330.html","name":"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-11T18:34:17+00:00","dateModified":"2026-02-11T18:34:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/75330.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/75330.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/75330.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C++\u547d\u4ee4\u884c\u5de5\u5177\uff1agflags\u4e0espdlog\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=75330"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=75330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=75330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=75330"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=75330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}