~/talk

Application Logging

Talkat Dutch PHP Conference 2024 · 2024-03-12..03-15· [developer-experience]
slides:none on file

Argues for structured logging with concrete tools and rules: use Monolog in PHP, attach context JSON (order_id, payment_id, duration) so logs are queryable, and send logs to a local sink (file, Redis/RabbitMQ) rather than remote APIs; then ingest with vector.dev for dashboards and alerts. Warns about cost (example: 20 messages → 2s if each API call is 100 ms), avoid logging secrets, prefer existing exception stack traces, and always measure the actual performance impact.

AI-written summary · about

  1. 0:00Introduction to app logging
  2. 2:10Why logging matters
  3. 3:55Limitations of infra logs
  4. 5:37Solving problems with logging
  5. 8:07What a log entry should look like
  6. 9:54Monolog for PHP logging
  7. 12:03Log levels explained
  8. 13:50Setting up Monolog
  9. 15:13Structured logging benefits
  10. 17:44Logs to metrics
  11. 20:10Events to log
  12. 21:54What not to log
  13. 22:59Logging performance impact
  14. 25:06Recap and key takeaways
  15. 25:31Q&A: Stack traces in logs?
  16. 26:40Q&A: Microservices logging
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.