~/talk

Logging the right way

Talkat PyCon India 2020 · 2020-10-02..10-05· [developer-experience]
links:none on file
slides:none on file

Shows concrete patterns: use Python's logging with lazy formatting and exception info, adopt structured JSON logs and send via Fluentd/Logstash to ELK, add correlation IDs for request tracing, and rotate files with TimedRotatingFileHandler instead of ad hoc deletion. Demonstrates a 512 MB microservice producing compact logs, explains how to filter noisy events and keep metrics-ready fields, and gives ready-to-copy config snippets and shell commands that actually worked in production.

AI-written summary · about

  1. 0:00Introduction
  2. 10:10Logging fundamentals
  3. 20:25Best practices demo
  4. 28:08Q&A and summary
~/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.