translation demo for ascend 910b4

This commit is contained in:
aiyueqi
2025-09-04 15:01:25 +08:00
parent 6efd9331e6
commit 50f01c46e4
7 changed files with 611 additions and 1 deletions

12
logger.py Normal file
View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
import logging
import os
logging.basicConfig(
format="%(asctime)s %(name)-12s %(levelname)-4s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level=os.environ.get("LOGLEVEL", "INFO"),
)
def get_logger(file):
return logging.getLogger(file)