我在我的应用程序中嵌入了Mongoose,但它会将所有内容记录到标准输出。
char const* options[] = {
"listening_ports", boost::lexical_cast<std::string>(port).c_str(),
nullptr
};
context = ::mg_start(&callback,
reinterpret_cast<void*>(&router),
options);
它输出如下内容:
*** 1339802127.0x7fff7922c960.mg_start.4192: [listening_ports] -> [8000]
*** 1339802127.0x7fff7922c960.mg_start.4202: Setting default: [cgi_pattern] -> [**.cgi$|**.pl$|**.php$]
*** 1339802127.0x7fff7922c960.mg_start.4202: Setting default: [authentication_domain] -> [mydomain.com]
*** 1339802127.0x7fff7922c960.mg_start.4202: Setting default: [ssi_pattern] -> [**.shtml$|**.shtm$]
*** 1339802127.0x7fff7922c960.mg_start.4202: Setting default: [enable_directory_listing] -> [yes]
*** 1339802127.0x7fff7922c960.mg_start.4202: Setting default: [index_files] -> [index.html,index.htm,index.cgi]
如何防止 Mongoose 登录到标准输出?