import logging import datetime from pathlib import Path import tornado from litepipeline_helper.models.action import Action import logger LOG = logging.getLogger(__name__) home = str(Path.home()) if __name__ == "__main__": workspace, input_data = Action.get_input() logs_directory = os.path.join(workspace, "logs") logger.config_logging(file_name = "first.log", log_level = "DEBUG", dir_name = logs_directory, day_rotate = False, when = "D", interval = 1, max_size = 20, backup_count = 5, console = False) LOG.debug("test start") LOG.debug("input_data: %s", input_data) data = {"messages": []}
import datetime from pathlib import Path import tornado import numpy from litepipeline_helper.models.action import Action from litedfs_client.client import LiteDFSClient import logger LOG = logging.getLogger(__name__) home = str(Path.home()) if __name__ == "__main__": workspace, input_data = Action.get_input() logs_directory = os.path.join(workspace, "logs") logger.config_logging(file_name="first.log", log_level="DEBUG", dir_name=logs_directory, day_rotate=False, when="D", interval=1, max_size=20, backup_count=5, console=False) LOG.debug("test start") LOG.debug("input_data: %s", input_data) task_name = input_data["action_info"]["task_name"]