feat: basic function for management of people
- recognize people info by input text or image - create a people and save into relational database and vector database and object storage - delete a people by people id - get peoples with pagination and fitlers by gender, age and height - get peoples with topN and searching by nature language
This commit is contained in:
16
test/test_logger.py
Normal file
16
test/test_logger.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../src'))
|
||||
|
||||
from utils.logger import init
|
||||
import logging
|
||||
|
||||
# 初始化日志
|
||||
init()
|
||||
|
||||
# 测试不同级别的日志
|
||||
logging.debug("这是一条调试信息")
|
||||
logging.info("这是一条普通信息")
|
||||
logging.warning("这是一条警告信息")
|
||||
logging.error("这是一条错误信息")
|
||||
logging.critical("这是一条严重错误信息")
|
||||
Reference in New Issue
Block a user