[Core] Model console logging as CLI configuration (#57205)

Add `--logging-config` CLI argument which can be supplied as
JSON or using dotted arguments. The `--log-level` argument
is provided for convenience, and `--log-config-file` is deprecated
in favor of `--logging-config.pylogging_config_file`.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Co-authored-by: AI Assistant <noreply@openai.com>
This commit is contained in:
Mark McLoughlin
2026-09-25 11:36:59 +01:00
committed by GitHub
co-authored by AI Assistant
parent fa6c407d15
commit 45d56c0baf
36 changed files with 439 additions and 134 deletions
@@ -2,6 +2,7 @@
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import atexit
import contextlib
import logging
import tempfile
from typing import Any
@@ -83,7 +84,7 @@ def compile_nccl_allocator():
cpp_sources=nccl_allocator_source,
with_cuda=True,
extra_ldflags=ldflags,
verbose=envs.VLLM_LOGGING_LEVEL == "DEBUG",
verbose=logger.isEnabledFor(logging.DEBUG),
is_python_module=False,
build_directory=out_dir,
extra_include_paths=nccl_include_paths,