From 5537a964e6d40a65c983c71934b8a763c3ac3ae0 Mon Sep 17 00:00:00 2001 From: SUPREME Date: Sun, 31 May 2026 12:47:44 +0530 Subject: [PATCH] docs: add module-level docstring to logger module The logger module lacked documentation explaining its purpose as the default logging provider for FastAPI applications. --- fastapi/logger.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fastapi/logger.py b/fastapi/logger.py index 5b2c4ad525..67d14a0f4f 100644 --- a/fastapi/logger.py +++ b/fastapi/logger.py @@ -1,3 +1,10 @@ +""" +Default logger for FastAPI. + +Provides a pre-configured logger instance named "fastapi" for internal +logging throughout the framework. +""" + import logging logger = logging.getLogger("fastapi")