Log documentation updates

This commit is contained in:
Clemens Schwaighofer
2025-08-18 14:35:14 +09:00
parent 3a7a1659f0
commit 446d9d5217
2 changed files with 1 additions and 1 deletions

View File

@@ -690,6 +690,7 @@ class Log(LogParent):
def init_worker_logging(log_queue: 'Queue[str]') -> logging.Logger:
"""
This initalizes a logger that can be used in pool/thread queue calls
call in worker initializer as "Log.init_worker_logging(Queue[str])
"""
queue_handler = logging.handlers.QueueHandler(log_queue)
# getLogger call MUST be WITHOUT and logger name

View File

@@ -24,7 +24,6 @@ class LoggingLevel(Enum):
WARN = logging.WARN # 30 (alias for WARNING)
FATAL = logging.FATAL # 50 (alias for CRITICAL)
# Optional: Add string representation for better readability
@classmethod
def from_string(cls, level_str: str):
"""Convert string to LogLevel enum"""