About 6 results
https://rednafi.com/go/typesafe-slogging/ · 9 May 2026
The default slog API is loose enough that a careless line ships broken JSON to production. Pin it down with Attr constructors, LogAttrs, a context-borne logger, and sloglint.
https://rednafi.com/python/log-context-propagation/ · 6 Aug 2024
Automatically tag Python logs with request context using middleware and contextvars for distributed tracing in ASGI web applications.
https://rednafi.com/python/no-hijack-root-logger/ · 3 Aug 2024
Avoid configuring Python's root logger in libraries; use named loggers with NullHandler to let application code control logging behavior.
https://rednafi.com/go/anemic-stack-traces/ · 10 Feb 2024
Learn how to build custom error types in Go to create stack traces without runtime overhead, inspired by Rob Pike's Upspin error handling.
https://rednafi.com/go/structured-logging-with-slog/ · 10 Aug 2023
Master Go 1.21's log/slog package for structured logging with levels, JSON output, and attribute grouping. No third-party libraries needed.
https://rednafi.com/python/logging-quirks-in-lambda-environment/ · 20 Oct 2022
Configure Python logging for AWS Lambda's pre-configured handlers while maintaining compatibility with local development environments.