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
+5
View File
@@ -33,5 +33,10 @@ config :swoosh, local: false
# Do not print debug messages in production
config :logger, level: :info
# Emit one JSON object per line in production so journald output can be
# filtered and shipped without parsing prose. Dev and test keep the readable
# default formatter configured in config.exs.
config :logger, :default_handler, formatter: {Chesstrainer.JSONLogFormatter, %{}}
# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.