Getting things logged
summary
A compact logging framework for R that records levelled messages, captures warnings and errors automatically, and ships to console, file, database or Slack; formatters support glue and a JSON layout for downstream analysis. Message filtering costs about 20 microseconds per call so dense instrumentation is cheap. Appenders can run asynchronously via appender_async, using a local queue and background worker so logging no longer blocks long jobs; fork safety and helpers for DBI, Shiny and S3 access are built in.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:30WHAT IS "PRODUCTION"?
- 4:16MOTIVATION
- 5:13POOR MAN'S PROGRESS BAR
- 5:46LOGGING PROGRESS TO FILE
- 6:20LOGGING PACKAGES ON CRAN
- 6:59LOGGER: A LIGHTWEIGHT, MODERN AND FLEXIBLE LOGGING UTILITY FOR R
- 7:41LOGGER: A COLLECTIONG OF HELPER FUNCTIONS FOR LOGGING
- 8:30LOGGER: READY FOR PRODUCTION cat demo.
- 9:15COLORIZED OUTPUT
- 9:31THE ANATOMY OF A LOG REQUEST
- 11:31LOG LEVELS
- 11:43LOG MESSAGE FORMATTERS
- 13:15ASYNC LOG RECORD DESTINATIONS: WHY?
- 14:19ASYNC LOG RECORD DESTINATIONS: SETUP Optionally log what's happening in the background
- 14:36ASYNC LOG RECORD DESTINATIONS: USAGE
- 15:44HELPER FUNCTIONS: TIC-TOC LOGGING
- 16:11HELPER FUNCTIONS: SHINY APPS
- 16:47USING LOGGER IN R PACKAGES
- 18:27USING LOGGER IN DBR








