From 7709eeb49f1d237226cd5b58e3613e7465eb9103 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Thu, 13 Aug 2026 02:04:15 +0200 Subject: [PATCH] refactor: remove legacy logging compatibility --- python/__init__.py | 6 +---- python/config.py | 3 --- python/logger.py | 59 ---------------------------------------------- 3 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 python/config.py delete mode 100644 python/logger.py diff --git a/python/__init__.py b/python/__init__.py index 10c8969..d129f96 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -1,5 +1 @@ -# This file makes the 'python' directory a package. -from . import log_system -from .log_system import logger - -__all__ = ['log_system', 'logger'] +"""Backend package for the LayerForge ComfyUI custom node.""" diff --git a/python/config.py b/python/config.py deleted file mode 100644 index ebb3593..0000000 --- a/python/config.py +++ /dev/null @@ -1,3 +0,0 @@ -# Log level for development. -# Possible values: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'NONE' -LOG_LEVEL = 'DEBUG' diff --git a/python/logger.py b/python/logger.py deleted file mode 100644 index 63c48d0..0000000 --- a/python/logger.py +++ /dev/null @@ -1,59 +0,0 @@ -"""Backward-compatible exports for the LayerForge logging system. - -The implementation lives in :mod:`python.log_system`, matching the Model -Resolver layout. Existing LayerForge imports can continue using -``python.logger`` while all callers share the same logger instance. -""" - -from .log_system.logger import ( - ANSI_RESET, - DEFAULT_CONFIG, - LEVEL_MAP, - LEVEL_THEME, - AzLogsLogger, - ColoredFormatter, - DirectConsoleHandler, - LogLevel, - SafeRotatingFileHandler, - logger, - parse_rotated_log_filename, - rotated_log_filename, - set_debug, - set_file_logging, -) -from .log_system.log_funcs import ( - create_module_logger, - debug, - error, - exception, - fatal, - info, - warn, -) - -LayerForgeLogger = AzLogsLogger - -__all__ = [ - "ANSI_RESET", - "DEFAULT_CONFIG", - "LEVEL_MAP", - "LEVEL_THEME", - "AzLogsLogger", - "ColoredFormatter", - "DirectConsoleHandler", - "LayerForgeLogger", - "LogLevel", - "SafeRotatingFileHandler", - "create_module_logger", - "debug", - "error", - "exception", - "fatal", - "info", - "logger", - "parse_rotated_log_filename", - "rotated_log_filename", - "set_debug", - "set_file_logging", - "warn", -]