Add a new CLI option --disable-access-log-for-endpoints to suppress uvicorn access logs for specified endpoints (e.g., /health, /metrics, /ping). This addresses the need to reduce log noise in production environments where health check endpoints are frequently polled by load balancers or monitoring systems, generating excessive log entries that obscure meaningful request logs. Fixes #29982 Signed-off-by: JaredforReal <w13431838023@gmail.com>
20 lines
538 B
Python
20 lines
538 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from vllm.logging_utils.access_log_filter import (
|
|
UvicornAccessLogFilter,
|
|
create_uvicorn_log_config,
|
|
)
|
|
from vllm.logging_utils.formatter import ColoredFormatter, NewLineFormatter
|
|
from vllm.logging_utils.lazy import lazy
|
|
from vllm.logging_utils.log_time import logtime
|
|
|
|
__all__ = [
|
|
"NewLineFormatter",
|
|
"ColoredFormatter",
|
|
"UvicornAccessLogFilter",
|
|
"create_uvicorn_log_config",
|
|
"lazy",
|
|
"logtime",
|
|
]
|