Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

A way to configure masks in logging output (e.g. to obscure credit card details) #66

Closed
CydeWeys opened this Issue Oct 9, 2013 · 2 comments

Comments

Projects
None yet
2 participants

CydeWeys commented Oct 9, 2013

It'd be nice to be able to configure a set of replacement regular expressions that are applied against all output-to-be-logged. For instance, I'd love to be able to do s/\d{12}(\d{4})/************\1/g to prevent any logging of credit card numbers.

Owner

tj commented Apr 28, 2014

meh, it's just conditional logging anyway, easy to do this on a case per case basis

@tj tj closed this Apr 28, 2014

We ended up monkey-patching the debug method to do our filtering, then call the base implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment