[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 -2
View File
@@ -9,7 +9,7 @@ import importlib.metadata
import sys
from importlib.util import find_spec
from vllm.logger import init_logger
from vllm.logger import configure_logging_from_args, init_logger
logger = init_logger(__name__)
@@ -110,7 +110,9 @@ def main():
cmds[cmd.name] = cmd
args = parser.parse_args()
if args.subparser in cmds:
cmds[args.subparser].validate(args)
cmd = cmds[args.subparser]
configure_logging_from_args(args)
cmd.validate(args)
if hasattr(args, "dispatch_function"):
args.dispatch_function(args)