chore(logger): 更新日志模块颜色与别名配置

为多个新模块和重构后的模块添加了对应的日志颜色和别名,以增强日志的可读性和区分度。具体包括:
- SQLAlchemy 相关模块
- OpenAI 和 Gemini 客户端
- 多个插件和管理器
- 重构后的 MaiZone 服务和操作
- 新增的网络工具插件
This commit is contained in:
minecraft1024a
2025-08-17 12:50:49 +08:00
parent 384ae0b20f
commit 19f7fa15ac

View File

@@ -406,6 +406,9 @@ MODULE_COLORS = {
"model_utils": "\033[38;5;164m", # 紫红色
"relationship_fetcher": "\033[38;5;170m", # 浅紫色
"relationship_builder": "\033[38;5;93m", # 浅蓝色
"sqlalchemy_init": "\033[38;5;105m", #
"sqlalchemy_models": "\033[38;5;105m",
"sqlalchemy_database_api": "\033[38;5;105m",
#s4u
"context_web_api": "\033[38;5;240m", # 深灰色
@@ -417,6 +420,8 @@ MODULE_COLORS = {
"generator_api": "\033[38;5;28m", # 森林绿
"person_api": "\033[38;5;22m", # 深绿色
"tool_api": "\033[38;5;76m", # 绿色
"OpenAI客户端": "\033[38;5;81m",
"Gemini客户端": "\033[38;5;81m",
# 插件系统扩展
"plugin_base": "\033[38;5;196m", # 红色
@@ -436,6 +441,8 @@ MODULE_COLORS = {
"src.multimodal.video_analyzer": "\033[38;5;75m", # 亮蓝色
"ReplyerManager": "\033[38;5;173m", # 浅橙色
"relationship_builder_manager": "\033[38;5;176m", # 浅紫色
"expression_selector": "\033[38;5;176m",
"chat_message_builder": "\033[38;5;176m",
# MaiZone QQ空间相关
"MaiZone": "\033[38;5;98m", # 紫色
@@ -444,9 +451,24 @@ MODULE_COLORS = {
"MaiZone-Scheduler": "\033[38;5;134m", # 紫红色
"MaiZone-Utils": "\033[38;5;140m", # 浅紫色
# MaiZone Refactored
"MaiZone.HistoryUtils": "\033[38;5;140m",
"MaiZone.SchedulerService": "\033[38;5;134m",
"MaiZone.QZoneService": "\033[38;5;98m",
"MaiZone.MonitorService": "\033[38;5;104m",
"MaiZone.ImageService": "\033[38;5;110m",
"MaiZone.CookieService": "\033[38;5;140m",
"MaiZone.ContentService": "\033[38;5;110m",
"MaiZone.Plugin": "\033[38;5;98m",
"MaiZone.SendFeedCommand": "\033[38;5;134m",
"MaiZone.SendFeedAction": "\033[38;5;134m",
"MaiZone.ReadFeedAction": "\033[38;5;134m",
# 网络工具
"web_surfing_tool": "\033[38;5;130m", # 棕色
"tts": "\033[38;5;136m", # 浅棕色
"poke_plugin": "\033[38;5;136m",
"set_emoji_like_plugin": "\033[38;5;136m",
# mais4u系统扩展
"s4u_config": "\033[38;5;18m", # 深蓝色
@@ -526,6 +548,19 @@ MODULE_ALIASES = {
"MaiZone-Scheduler": "Mai空间调度",
"MaiZone-Utils": "Mai空间工具",
# MaiZone Refactored
"MaiZone.HistoryUtils": "Mai空间历史",
"MaiZone.SchedulerService": "Mai空间调度",
"MaiZone.QZoneService": "Mai空间服务",
"MaiZone.MonitorService": "Mai空间监控",
"MaiZone.ImageService": "Mai空间图片",
"MaiZone.CookieService": "Mai空间饼干",
"MaiZone.ContentService": "Mai空间内容",
"MaiZone.Plugin": "Mai空间插件",
"MaiZone.SendFeedCommand": "Mai空间发说说",
"MaiZone.SendFeedAction": "Mai空间发说说",
"MaiZone.ReadFeedAction": "Mai空间读说说",
# 网络工具
"web_surfing_tool": "网络搜索",
"tts": "语音合成",