Debug Auralogger — CLI connectivity checks and synthetic logs
Debug playbook: correct working directory, auralogger server-check and client-check for proj_auth and WebSockets, test-serverlog / test-clientlog / test-log for synthetic traffic, confirm with get-logs.
Debugging with the CLI Goal: narrow where failure occurs (proj_auth, server socket, browser socket, or query visibility). 0) Run from the right place - cd into the repo/folder that owns your .env or .env.local. - CLI loads env from process.cwd(). - If token/secret/session errors appear, re-check env in that exact directory. - Use init to repopulate missing values. 1) Invocation guidance - Prefer npx auralogger <command> when in doubt to avoid PATH/global mismatch. - auralogger <command> is fine when global install is correct. - Command spellings include test-serverlog, test-clientlog, test-log. 2) What each debug command proves - server-check: server ingest socket and Authorization path work. - client-check: browser ingest path works without user secret on socket. - test-serverlog: server SDK-style repeated sends succeed. - test-clientlog: client SDK-style repeated sends succeed. - test-log: package root client smoke path. - get-logs: confirms backend storage and query visibility. 3) Failure playbook A) Nothing works / auth or network - run server-check - if timeout/socket issue: check VPN, firewall, proxy, ws URL overrides - if proj_auth/credential issue: verify project token and user secret B) Server-side logging broken - server-check must pass first - run test-serverlog - verify with get-logs -maxcount 20 and relevant filters C) Browser/client logging broken - run client-check - run test-clientlog or test-log - verify with get-logs and narrow by message/location/time D) Logs might send but not visible - increase maxcount - continue paging with nextpage/skip - keep filters stable while paging Quick reference npx auralogger server-check npx auralogger client-check npx auralogger test-serverlog npx auralogger test-clientlog npx auralogger test-log npx auralogger get-logs -maxcount 20