Files
Azornes-Comfyui-Model-Resolver/core/log_system/config.py
T
Dariusz L c6441aa92e feat: add FATAL log level, refactor logging colors and stacklevel
- Add FATAL (50) to LogLevel enum, LEVEL_MAP, and LEVEL_THEME (bright red #E74C3C)
- Drop legacy COLORS dict in favor of LEVEL_THEME RGB values + ANSI_RESET
- Replace hard-coded stacklevel=4 with _INTERNAL_FRAMES constant so caller
  location is always correct regardless of call-chain depth
- Simplify _normalize_module_name by removing redundant path normalization
- Add fatal() to ModuleLogger, AzLogsLogger, and module-level API
- Lazily init _log in path_utils via _get_log() to avoid circular imports
2026-06-30 22:07:15 +02:00

19 lines
477 B
Python

"""
@author: Azornes
@title: AzLogs
@version: 2.0.0
@description: Logging Configuration
"""
# Log level for development.
# Possible values: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL', 'NONE'
LOG_LEVEL = "DEBUG"
# Logger module name. Set to None to auto-detect from folder name.
LOG_MODULE_NAME = "MResolver"
# Enable ANSI colors in console logs.
USE_COLORS = True
# Project name aliases stripped during module name normalization.
PROJECT_ALIASES = ["comfyui-model-resolver"]