PHPackages                             egeniq/monolog-gdpr - 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. egeniq/monolog-gdpr

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

egeniq/monolog-gdpr
===================

Some Monolog processors that will help in relation to the security requirements under GDPR.

v2.0.0(3y ago)538.7k1[1 PRs](https://github.com/egeniq/monolog-gdpr/pulls)MITPHP

Since May 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/egeniq/monolog-gdpr)[ Packagist](https://packagist.org/packages/egeniq/monolog-gdpr)[ Docs](https://github.com/egeniq/monolog-gdpr)[ RSS](/packages/egeniq-monolog-gdpr/feed)WikiDiscussions develop Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

monolog-gdpr [![Build Status](https://github.com/egeniq/monolog-gdpr/actions/workflows/ci.yaml/badge.svg?branch=develop)](https://github.com/egeniq/monolog-gdpr/actions/workflows/ci.yaml)
===========================================================================================================================================================================================

[](#monolog-gdpr-)

Some Monolog processors that will help in relation to the security requirements under GDPR. These processors will replace data with their SHA-1 equivalent, allowing you still to search logs

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

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

[](#installation)

Install the latest version with

```
$ composer require egeniq/monolog-gdpr

```

Salted hashes
-------------

[](#salted-hashes)

This library supports salted hashes using `processor->setSalt()`. To compute your hashed value you could use the following bash command:

```
$ echo -n 'foo@bar.com' | openssl sha1
```

RedactEmailProcessor
--------------------

[](#redactemailprocessor)

Replaces all e-mail addresses by their SHA-1 hash.

Usage:

```
