⚡ 初始提交 - FutureOSS v1.0 插件化运行时框架
一切皆为插件的开发者工具运行时框架
🧩 核心特性:
- 插件热插拔 (importlib 动态加载)
- 依赖自动解析 (拓扑排序 + 循环检测)
- 企业级稳定 (熔断/降级/重试/隔离)
- 事件驱动 (发布/订阅事件总线)
- 完整配置 (YAML 配置 + 热重载)
This commit is contained in:
BIN
oss/logger/__pycache__/__init__.cpython-313.pyc
Normal file
BIN
oss/logger/__pycache__/__init__.cpython-313.pyc
Normal file
Binary file not shown.
BIN
oss/logger/__pycache__/logger.cpython-313.pyc
Normal file
BIN
oss/logger/__pycache__/logger.cpython-313.pyc
Normal file
Binary file not shown.
15
oss/logger/logger.py
Normal file
15
oss/logger/logger.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""日志系统 - 空壳,由日志插件提供实际功能"""
|
||||
class Logger:
|
||||
"""日志记录器(空壳)"""
|
||||
|
||||
def info(self, msg: str, **kwargs):
|
||||
print(f"[INFO] {msg}")
|
||||
|
||||
def warn(self, msg: str, **kwargs):
|
||||
print(f"[WARN] {msg}")
|
||||
|
||||
def error(self, msg: str, **kwargs):
|
||||
print(f"[ERROR] {msg}")
|
||||
|
||||
def debug(self, msg: str, **kwargs):
|
||||
print(f"[DEBUG] {msg}")
|
||||
Reference in New Issue
Block a user