~/talk

Really good logging

Talkat PyOhio 2012 · 2012-07-28..07-29· [devops-and-delivery]
links:none on file
slides:none on file

Explains concrete setups: use levels (debug/info/warning/error/critical with numeric scores), attach multiple handlers (console, file, SMTPHandler emails tracebacks), formatters with timestamp/process/file/line, and use RotatingFileHandler with maxBytes and backupCount to cap temp logs. Shows code, config files, and dict-based logging, uses package_resources to ship configs, and wires sys.excepthook to log uncaught exceptions (or logging.exception with exc_info=True). Mentions Graylog2/GELF and syslog, and using logrotate to rotate on disk; examples all run and produce emails and rotated files.

AI-written summary · about

  1. 0:00Logging basics
  2. 1:36Basic configuration
  3. 3:53File handling
  4. 6:00Advanced logging setup
  5. 10:25Formatters and handlers
  6. 14:21Email notifications
  7. 20:29Configuration methods
  8. 27:02YAML configuration
  9. 30:07Exception handling
  10. 33:22Logging uncaught exceptions
  11. 35:21Logger hierarchies
  12. 38:22Advanced file rotation
  13. 42:24Logging filters
  14. 45:08Debugging stack traces
  15. 46:06Log rotation strategies
  16. 46:55Centralized logging
  17. 48:48Security and best practices
  18. 51:24Closing Q&A
~/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.