You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPING.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,17 +306,17 @@ In the future this will be replaced by a configurable untracked file for dev use
306
306
307
307
## Logging
308
308
309
-
GuideLLM uses [Loguru](https://github.com/Delgan/loguru) for logging, which is useful for learning how GuideLLM works and for diagnosing problems. Logging is configured entirely through environment variables (or the equivalent `GUIDELLM__LOGGING__*`settings), so no code changes are needed to change what is logged or where it goes.
309
+
Logging is controlled entirely through the `GUIDELLM__LOGGING__*`environment variables (or the equivalent settings object), so no code changes are needed to change what is logged or where it goes.
310
310
311
-
GuideLLM writes to two independent sinks:
311
+
Logging is set through two independent outputs:
312
312
313
-
-**Console logging** is enabled by default and prints human-readable messages (timestamp, level, `module:function:line`, and message) to `stdout`. Its verbosity is controlled by `GUIDELLM__LOGGING__CONSOLE_LOG_LEVEL` (default: `WARNING`).
314
-
-**File logging** is disabled by default and turns on as soon as either `GUIDELLM__LOGGING__LOG_FILE` or `GUIDELLM__LOGGING__LOG_FILE_LEVEL` is set. File logs are written as structured JSON (one object per line) for easy parsing, to `GUIDELLM__LOGGING__LOG_FILE` (default: `guidellm.log`) at `GUIDELLM__LOGGING__LOG_FILE_LEVEL` (default: `INFO`).
313
+
-**Console logging** is enabled by default and prints human-readable messages (timestamp, level, `module:function:line`, and message) to `stdout`.
314
+
-**File logging** is disabled by default and turns on as soon as either `GUIDELLM__LOGGING__LOG_FILE` or `GUIDELLM__LOGGING__LOG_FILE_LEVEL` is set. File logs are written as structured JSON, one object per line.
315
315
316
-
### Logging environment variables
316
+
The variables below control both, including their default levels:
-`GUIDELLM__LOGGING__CLEAR_LOGGERS`: Clear existing loguru loggers before configuring GuideLLM's own (default: `true`).
319
+
-`GUIDELLM__LOGGING__CLEAR_LOGGERS`: Clear existing loggers before configuring GuideLLM's own (default: `true`).
320
320
-`GUIDELLM__LOGGING__CONSOLE_LOG_LEVEL`: Level for console logging, one of `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` (default: `WARNING`).
321
321
-`GUIDELLM__LOGGING__LOG_FILE`: Path to the log file; setting it enables file logging (default: `guidellm.log` when a file level is set, otherwise file logging is off).
322
322
-`GUIDELLM__LOGGING__LOG_FILE_LEVEL`: Level for file logging; setting it enables file logging (default: `INFO` when a log file is set, otherwise off).
@@ -335,7 +335,7 @@ Write structured `DEBUG` logs to a file while leaving the console at its default
335
335
GUIDELLM__LOGGING__LOG_FILE=guidellm.log GUIDELLM__LOGGING__LOG_FILE_LEVEL=DEBUG guidellm run ...
336
336
```
337
337
338
-
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.
338
+
If logging isn't responding to the environment variables, run the `guidellm env` command to validate that the environment variables match and are being set correctly.
0 commit comments