FastAPI-app icon indicating copy to clipboard operation
FastAPI-app copied to clipboard

Point of `AppLogger`?

Open zmarffy opened this issue 1 year ago • 1 comments

Why do logger = utils.AppLogger.__call__().get_logger()? This could be logger = utils.AppLogger().get_logger(), or maybe even easier, just logger = logging.getLogger(__name__). Am I missing something?

zmarffy avatar Mar 26 '24 03:03 zmarffy

you're right, the .__call__ part is redundant

petrgazarov avatar May 11 '24 23:05 petrgazarov