translation demo for iluvatar

This commit is contained in:
aiyueqi
2025-08-26 19:04:22 +08:00
parent 3025aaaf00
commit 525829fb6a
6 changed files with 566 additions and 0 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)