Add `--logging-config.formatter=json` to enable the python-json-logger formatter without having to use a complete Python logging dictConfig. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Co-authored-by: OpenAI Codex <noreply@openai.com>
22 lines
627 B
Python
22 lines
627 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from vllm.logging_utils.formatter import ColoredFormatter, NewLineFormatter
|
|
from vllm.logging_utils.lazy import lazy
|
|
from vllm.logging_utils.log_time import logtime
|
|
from vllm.logging_utils.torch_tensor import tensors_str_no_data
|
|
from vllm.logging_utils.uvicorn_logging import (
|
|
UvicornAccessLogFilter,
|
|
create_uvicorn_log_config,
|
|
)
|
|
|
|
__all__ = [
|
|
"NewLineFormatter",
|
|
"ColoredFormatter",
|
|
"UvicornAccessLogFilter",
|
|
"create_uvicorn_log_config",
|
|
"lazy",
|
|
"logtime",
|
|
"tensors_str_no_data",
|
|
]
|