log_module/log.py
@@ -225,6 +225,9 @@ rotation="00:00", compression="zip", enqueue=True) logger.add(sys.stdout, filter=lambda record: record["extra"].get("name") == "local_huaxin_l1_show_info") logger.add(self.get_local_huaxin_path("l1", "show_info"), filter=lambda record: record["extra"].get("name") == "local_huaxin_l1_show_info", rotation="00:00", compression="zip", enqueue=True) def get_path(self, dir_name, log_name): path_str = "{}/logs/gp/{}/{}".format(constant.get_path_prefix(), dir_name, log_name) + ".{time:YYYY-MM-DD}.log"