added logging to the project

This commit is contained in:
2026-03-27 12:30:30 -07:00
parent 42e20da6de
commit 989426efa0
5 changed files with 77 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ Edit `config.psd1` before deploying:
| Key | Description | Default |
|---|---|---|
| `UNCPath` | Base UNC path for clip storage — username subfolder created automatically | `\\server\ITCaptures` |
| `LogPath` | Base UNC path for script logs — username subfolder created automatically; each script writes its own log file | `\\server\ITLogs` |
| `BufferSeconds` | Replay buffer duration in seconds | `120` |
| `WebSocketPort` | OBS WebSocket port — must match `obs-config/plugin_config/obs-websocket/config.json` | `4455` |
| `OBSExecutable` | Full path to `obs64.exe` on the target machine | `C:\Program Files\obs-studio\bin\64bit\obs64.exe` |
@@ -95,6 +96,10 @@ This is the only DEM task needed. The script handles all config file deployment,
- Right-click the icon → **Save Replay** to save the last `BufferSeconds` of screen activity
- A Windows toast notification confirms success or failure (falls back to a message box if toast is unavailable)
- Clips appear at `\\server\ITCaptures\<username>\` named by timestamp
- Logs are written to `\\server\ITLogs\<username>\` — three files, one per script:
- `OBSReplayBuffer.log` — startup and config deployment
- `OBSReplayBuffer-Tray.log` — tray lifetime, save attempts, and results
- `OBSReplayBuffer-Save.log` — WebSocket steps for each save attempt
## Changing the Buffer Duration