Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7940d8a6
Unverified
Commit
7940d8a6
authored
Feb 24, 2025
by
Roger Meier
Committed by
GitHub
Feb 24, 2025
Browse files
[CI/Build] add python-json-logger to requirements-common (#12842)
parent
c0e3ecd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
examples/other/logging_configuration.md
examples/other/logging_configuration.md
+2
-7
requirements-common.txt
requirements-common.txt
+1
-0
No files found.
examples/other/logging_configuration.md
View file @
7940d8a6
...
...
@@ -49,7 +49,8 @@ disabled, an error will occur while starting vLLM.
### Example 1: Customize vLLM root logger
For this example, we will customize the vLLM root logger to use
[
`python-json-logger`
](
https://github.com/madzak/python-json-logger
)
to log to
[
`python-json-logger`
](
https://github.com/nhairs/python-json-logger
)
(which is part of the container image) to log to
STDOUT of the console in JSON format with a log level of
`INFO`
.
To begin, first, create an appropriate JSON logging configuration file:
...
...
@@ -82,12 +83,6 @@ To begin, first, create an appropriate JSON logging configuration file:
}
```
Next, install the
`python-json-logger`
package if it's not already installed:
```
bash
pip
install
python-json-logger
```
Finally, run vLLM with the
`VLLM_LOGGING_CONFIG_PATH`
environment variable set
to the path of the custom logging configuration JSON file:
...
...
requirements-common.txt
View file @
7940d8a6
...
...
@@ -38,3 +38,4 @@ compressed-tensors == 0.9.2 # required for compressed-tensors
depyf==0.18.0 # required for profiling and debugging with compilation config
cloudpickle # allows pickling lambda functions in model_executor/models/registry.py
watchfiles # required for http server to monitor the updates of TLS files
python-json-logger # Used by logging as per examples/other/logging_configuration.md
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment