Secure Logging in Python: Redacting Sensitive Data with Filters

The Power of Python Logging Filters

Adam Szpilewicz
Level Up Coding
Published in
5 min readMay 2, 2023

--

Photo by Oleg Didenko on Unsplash

Logs are essential for tracking application behavior and debugging issues. However, logs can sometimes contain sensitive information that you don’t want to store or expose, such as Social Security Numbers, credit card numbers, or passwords. In this blog post, we will explore how to redact…

--

--

Backend software engineer working with golang and python @Rivery (https://rivery.io/). I like writting and reading about code and software engineering.