diff --git a/invokeai/backend/util/logging.py b/invokeai/backend/util/logging.py index 3a8d721aa5..5c511bcab7 100644 --- a/invokeai/backend/util/logging.py +++ b/invokeai/backend/util/logging.py @@ -228,7 +228,6 @@ def basicConfig(**kwargs): def getLogger(name: str = None) -> logging.Logger: return InvokeAILogger.getLogger(name) - _FACILITY_MAP = ( dict( LOG_KERN=syslog.LOG_KERN, @@ -366,6 +365,11 @@ class InvokeAILogger(object): cls.loggers[name] = logger return cls.loggers[name] + # same thing without the camel case + @classmethod + def get_logger(cls, *arg, **kwarg) -> logging.Logger: + return cls.getLogger(*arg, **kwarg) + @classmethod def getLoggers(cls, config: InvokeAIAppConfig) -> list[logging.Handler]: handler_strs = config.log_handlers