Skip to content

Commit c7f5fa5

Browse files
committed
Add VIAM_LOGFILE and VIAM_NO_WINDOWS_EVENT_LOGGER env vars to viam-server reference
RDK #5971 added two new environment variables for viam-server logging configuration. Document them in a new Environment variables section on the viam-server reference page. https://claude.ai/code/session_01YLbpqo3cWMJErcD1KNP9Lz
1 parent 32ec9b0 commit c7f5fa5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/reference/viam-server.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ Enabling debug level logs will take precedence over all logging configuration se
291291
| `-webprofile` | Include profiler in HTTP server. |
292292
| `-webrtc` | Force WebRTC connections instead of direct connections. Default: `true`. |
293293

294+
## Environment variables
295+
296+
You can set the following environment variables to configure `viam-server` behavior without command-line flags:
297+
298+
<!-- prettier-ignore -->
299+
| Variable | Description |
300+
| -------- | ----------- |
301+
| `VIAM_LOGFILE` | Path to a log file. Equivalent to the `-log-file` flag. If both the flag and the variable are set, the flag takes precedence. |
302+
| `VIAM_NO_WINDOWS_EVENT_LOGGER` | If set to any value, disables writing logs to the Windows Event Logger. Only relevant on Windows. |
303+
294304
## Install `viam-server` without the web UI
295305

296306
{{% alert title="Tip" color="tip" %}}

0 commit comments

Comments
 (0)