PHPackages                             andybeak/monolog-redact-sensitive - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. andybeak/monolog-redact-sensitive

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

andybeak/monolog-redact-sensitive
=================================

Monolog processors that will redact potentially sensitive information

v1.0.0(6y ago)0802[1 PRs](https://github.com/andybeak/monolog-redact-sensitive/pulls)MITPHPPHP ^7.2.18

Since Dec 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andybeak/monolog-redact-sensitive)[ Packagist](https://packagist.org/packages/andybeak/monolog-redact-sensitive)[ Docs](https://github.com/andybeak/monolog-redact-sensitive)[ RSS](/packages/andybeak-monolog-redact-sensitive/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Monolog data redaction
======================

[](#monolog-data-redaction)

[![Build Status](https://camo.githubusercontent.com/eda08451c0e7e6dabf4a74b436607b6e8dad1266d24a27ac5b865a0476d9abd7/68747470733a2f2f7472617669732d63692e6f72672f616e64796265616b2f6d6f6e6f6c6f672d7265646163742d73656e7369746976652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/andybeak/monolog-redact-sensitive)[![Maintainability](https://camo.githubusercontent.com/48bd06f3630ca21f40edfe0981faf5b1a78ee1bd129a6a04843cea17dde901fe/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63366466326266663634633335366634386263642f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/andybeak/monolog-redact-sensitive/maintainability)[![Test Coverage](https://camo.githubusercontent.com/bea90d3443aafc97606ca81af904537f7a297987c596390ed7092b649034a0ee/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63366466326266663634633335366634386263642f746573745f636f766572616765)](https://codeclimate.com/github/andybeak/monolog-redact-sensitive/test_coverage)

These [Monolog](https://github.com/Seldaek/monolog/blob/master/README.md) processors will identify and strip out emails and credit cards respectively.

WARNING: These processors will json serialise your $context. This may cause some undesired side-effects.

Installation
------------

[](#installation)

Install the latest version with

```
composer require andybeak/monolog-redact-sensitive

```

Usage
-----

[](#usage)

Here is example usage:

```
