- 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
19 lines
477 B
Python
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"]
|