Initial commit
Some checks failed
Docker Build and Push / docker (push) Failing after 2m10s

This commit is contained in:
4paradigm
2026-07-24 15:17:23 +08:00
commit 780b5e1ff4
1445 changed files with 216416 additions and 0 deletions

15
vllm/logging/formatter.py Normal file
View File

@@ -0,0 +1,15 @@
import logging
class NewLineFormatter(logging.Formatter):
"""Adds logging prefix to newlines to align multi-line messages."""
def __init__(self, fmt, datefmt=None, style="%"):
logging.Formatter.__init__(self, fmt, datefmt, style)
def format(self, record):
msg = logging.Formatter.format(self, record)
if record.message != "":
parts = msg.split(record.message)
msg = msg.replace("\n", "\r\n" + parts[0])
return msg