Administrator
2024-05-09 9ac765c32f39bb34cf2cd378e6ca7c1428e91b41
log_module/log.py
@@ -274,8 +274,6 @@
                   filter=lambda record: record["extra"].get("name") == "local_huaxin_l2_market",
                   rotation="00:00", compression="zip", enqueue=True)
        logger.add(self.get_local_huaxin_path("contact", "debug"),
                   filter=lambda record: record["extra"].get("name") == "local_huaxin_debug",
                   rotation="00:00", compression="zip", enqueue=True)
@@ -306,20 +304,20 @@
                   rotation="00:00", compression="zip", enqueue=True)
    def get_path(self, dir_name, log_name):
        path_str = "{}/sell_logs/gp/{}/{}".format(constant.get_path_prefix(), dir_name,
                                                  log_name) + ".{time:YYYY-MM-DD}.log"
        path_str = "{}/{}/gp/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name,
                                           log_name) + ".{time:YYYY-MM-DD}.log"
        # print(path_str)
        return path_str
    def get_hx_path(self, dir_name, log_name):
        path_str = "{}/sell_logs/huaxin/{}/{}".format(constant.get_path_prefix(), dir_name,
                                                      log_name) + ".{time:YYYY-MM-DD}.log"
        path_str = "{}/{}/huaxin/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name,
                                               log_name) + ".{time:YYYY-MM-DD}.log"
        # print(path_str)
        return path_str
    def get_local_huaxin_path(self, dir_name, log_name):
        path_str = "{}/sell_logs/huaxin_local/{}/{}".format(constant.get_path_prefix(), dir_name,
                                                            log_name) + ".{time:YYYY-MM-DD}.log"
        path_str = "{}/{}/huaxin_local/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name,
                                                     log_name) + ".{time:YYYY-MM-DD}.log"
        # print(path_str)
        return path_str