MCPcopy Create free account
hub / github.com/vercel/vercel / _setup_server_log_routing

Function _setup_server_log_routing

python/vercel-runtime/src/vercel_runtime/dev.py:84–99  ·  view source on GitHub ↗
(logger_name: str | None = None)

Source from the content-addressed store, hash-verified

82
83
84def _setup_server_log_routing(logger_name: str | None = None) -> None:
85 loggers: dict[str, Any] = {}
86
87 if logger_name:
88 loggers[logger_name] = {
89 "handlers": ["stdout", "stderr"],
90 "level": "INFO",
91 "propagate": False,
92 }
93
94 logging.config.dictConfig(
95 _build_log_config(
96 loggers=loggers,
97 _filter_ref=_MaxLevelFilter,
98 ),
99 )
100
101
102def _build_uvicorn_log_config(

Callers 2

_start_wsgiFunction · 0.85
_setup_appsFunction · 0.85

Calls 1

_build_log_configFunction · 0.85

Tested by

no test coverage detected