2017 © Pedro Peláez
 

symfony-bundle user-processor-bundle

Monolog process which adds user to log message

image

skowronline/user-processor-bundle

Monolog process which adds user to log message

  • Wednesday, January 4, 2017
  • by skowron-line
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

UserProcessorBundle

Scrutinizer Code Quality Build Status Code Coverage SensioLabsInsight, (*1)

Install

composer require skowronline/user-processor-bundle, (*2)

# config.yml
imports:
    ...
    - { resource: "@SkowronlineUserProcessorBundle/Resources/config/services.yml" }

Usage

custom.stream.handler:
    class: Monolog\Handler\StreamHandler
    arguments: ["%kernel.logs_dir%/custom.log"]
    public: false
custom.logger:
    class: Symfony\Bridge\Monolog\Logger
    arguments: [symfony, ['@custom.stream.handler'], ['@skowronline.monolog.user.processor']]
$this->get('custom.logger')->info('Custom message');
[2016-05-21 10:26:47] symfony.INFO: Custom message [] {"user":"anon."}

Global usage

You have to override service definition and add monolog.processor tag, (*3)

skowronline.monolog.user.processor.global:
    parent: skowronline.monolog.user.processor
    tags:
      - { name: monolog.processor }

The Versions

04/01 2017

dev-master

9999999-dev

Monolog process which adds user to log message

  Sources   Download

MIT

The Requires

 

The Development Requires

by krzysztof skaradzinski

user monolog processor

04/01 2017

v1.0.0

1.0.0.0

Monolog process which adds user to log message

  Sources   Download

MIT

The Requires

 

The Development Requires

by krzysztof skaradzinski

user monolog processor

21/05 2016

dev-docs

dev-docs

  Sources   Download

MIT

The Requires

 

The Development Requires

by krzysztof skaradzinski

user monolog processor