1 Logging
Miko edited this page 2026-11-04 22:06:13 -08:00

Logging

Every log line carries a level:

  • ERROR: something failed that should not have (a query, a decode, a store, a template, a recovered panic, a request the server answered with a 5xx).
  • WARN: something went wrong in a way the app expects and handles (ESI asking it to back off, stale data served because a refresh failed, a sign-in that did not complete, a setting worth changing).
  • INFO: what the app is doing (starting and stopping, sign-ins, worker cycle summaries, imports, requests).

LOG_LEVEL sets the least severe kind that is written. The default, info, writes everything, as before; warn leaves only the lines that may need attention. LOG_FORMAT=json writes one JSON object per line (time, level, msg) for a log collector; the default is the plain line:

2026/10/07 12:00:00 WARN worker: ESI error limit hit refreshing intel; backing off until next cycle

Under systemd, journalctl -u evesynapse -g ' (WARN|ERROR) ' shows only those lines without changing what is logged.