multi front process

This commit is contained in:
lnk
2025-06-27 16:33:41 +08:00
parent 747d6c757c
commit cc909101df
11 changed files with 105 additions and 90 deletions

View File

@@ -51,7 +51,7 @@ extern std::string subdir;
extern std::string G_LOG_TOPIC;
////////////////////////////////////////////////////////辅助函数
std::string get_front_type_from_subdir() {
/*std::string get_front_type_from_subdir() {
if (subdir == "cfg_3s_data")
return "realTime";
else if (subdir == "cfg_soe_comtrade")
@@ -62,7 +62,7 @@ std::string get_front_type_from_subdir() {
return "stat";
else
return "unknown";
}
}*/
// 递归创建目录
bool create_directory_recursive(const std::string& path) {
@@ -153,7 +153,7 @@ protected:
<< "\",\"level\":\"" << level_str
<< "\",\"grade\":\"" << get_level_str(level)
<< "\",\"logtype\":\"" << (logtype == LOGTYPE_COM ? "com" : "data")
<< "\",\"frontType\":\"" << get_front_type_from_subdir()
<< "\",\"frontType\":\"" << "cloudfront"
<< "\",\"log\":\"" << escape_json(msg) << "\"}";
std::string jsonString = oss.str();