[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
+4 -1
View File
@@ -16,7 +16,7 @@ from vllm.distributed.device_communicators.shm_broadcast import (
Handle,
MessageQueue,
)
from vllm.logger import init_logger
from vllm.logger import configure_logging, init_logger
from vllm.platforms import current_platform
from vllm.utils.network_utils import (
get_distributed_init_method,
@@ -113,6 +113,9 @@ class RayWorkerProc(WorkerProc):
is_driver_worker: bool,
is_driver_node: bool = False,
):
if logging_config := getattr(vllm_config, "logging_config", None):
configure_logging(logging_config)
# Defer WorkerProc.__init__ until GPU IDs are known.
self._is_driver_node = is_driver_node
self._parallel_config = vllm_config.parallel_config