Skip to content
Nette user processor for Monolog
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Processor
tests
.gitattributes
.gitignore
.travis.yml
composer.json
license.md
readme.md

readme.md

Monolog NetteFramework-User Processor

Build Status

Adds extra data about the current user to the Monolog log message.

Installation

Via Composer

$ composer require surda/monolog-nette-user-processor

and add to config.neon

monolog:
	processors:
		- Surda\Monolog\Processor\NetteUserProcessor

Usage

$this->logger->addError('Error message.');

Message in log

[2016-12-31 23:59:59] app.ERROR: Error message. [] {"nette-user":{"id":10,"loggedIn":true}}
You can’t perform that action at this time.