Add structured production logging (#105, #107) (#141)

* Update README.md

* Add structured JSON production logging (#105)

* Log requests and background failures (#107)

* Document production logging and the VPS runbook
This commit is contained in:
2026-11-10 22:00:05 +01:00
committed by GitHub
parent f8897fa5ae
commit 202b9b1f6a
20 changed files with 1380 additions and 15 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ defmodule ChesstrainerWeb.Endpoint do
cookie_key: "request_logger"
plug Plug.RequestId
plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]
# Access lines come from ChesstrainerWeb.RequestLogger (one structured line
# per request); disable Phoenix.Logger's endpoint start/stop pair.
plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint], log: false
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],