Skip to content

Commit 3f9eb9a

Browse files
jaredoconnellmarkurtz
authored andcommitted
Fix logging documentation (#226)
The logging documentation is buried in a code file, and it's wrong, so this PR corrects that. --------- Signed-off-by: Jared O'Connell <[email protected]> Co-authored-by: Mark Kurtz <[email protected]>
1 parent 547650e commit 3f9eb9a

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

DEVELOPING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,20 @@ src/ui/lib/store/[runInfo/workloadDetails/benchmarks]WindowData.ts
277277

278278
In the future this will be replaced by a configurable untracked file for dev use.
279279

280+
### Logging
281+
282+
Logging is useful for learning how GuideLLM works and finding problems.
283+
284+
Logging is set using the following environment variables:
285+
286+
- `GUIDELLM__LOGGING__DISABLED`: Disable logging (default: false).
287+
- `GUIDELLM__LOGGING__CLEAR_LOGGERS`: Clear existing loggers from loguru (default: true).
288+
- `GUIDELLM__LOGGING__CONSOLE_LOG_LEVEL`: Log level for console logging (default: none, options: DEBUG, INFO, WARNING, ERROR, CRITICAL).
289+
- `GUIDELLM__LOGGING__LOG_FILE`: Path to the log file for file logging (default: guidellm.log if log file level set else none)
290+
- `GUIDELLM__LOGGING__LOG_FILE_LEVEL`: Log level for file logging (default: INFO if log file set else none).
291+
292+
If logging isn't responding to the environment variables, run the `guidellm config` command to validate that the environment variables match and are being set correctly.
293+
280294
## Additional Resources
281295

282296
- [CONTRIBUTING.md](https://github.com/neuralmagic/guidellm/blob/main/CONTRIBUTING.md): Guidelines for contributing to the project.

src/guidellm/logger.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
- GUIDELLM__LOGGING__DISABLED: Disable logging (default: false).
1010
- GUIDELLM__LOGGING__CLEAR_LOGGERS: Clear existing loggers
1111
from loguru (default: true).
12-
- GUIDELLM__LOGGING__LOG_LEVEL: Log level for console logging
12+
- GUIDELLM__LOGGING__CONSOLE_LOG_LEVEL: Log level for console logging
1313
(default: none, options: DEBUG, INFO, WARNING, ERROR, CRITICAL).
14-
- GUIDELLM__LOGGING__FILE: Path to the log file for file logging
14+
- GUIDELLM__LOGGING__LOG_FILE: Path to the log file for file logging
1515
(default: guidellm.log if log file level set else none)
16-
- GUIDELLM__LOGGING__FILE_LEVEL: Log level for file logging
16+
- GUIDELLM__LOGGING__LOG_FILE_LEVEL: Log level for file logging
1717
(default: INFO if log file set else none).
1818
19+
If logging isn't responding to the environment variables, run the `guidellm config`
20+
command to validate that the environment variables match and are being set correctly.
21+
1922
Usage:
2023
from guidellm import logger, configure_logger, LoggerConfig
2124

0 commit comments

Comments
 (0)