demo for metax c500

This commit is contained in:
aiyueqi
2025-09-18 16:19:25 +08:00
commit be1375f031
7 changed files with 613 additions and 0 deletions

14
logger.py Normal file
View File

@@ -0,0 +1,14 @@
# -*- 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)