2017 © Pedro Peláez
 

symfony-bundle monolog-extender-bundle

Symfony Bundle that wraps Monolog extender library

image

stuzzo/monolog-extender-bundle

Symfony Bundle that wraps Monolog extender library

  • Friday, February 2, 2018
  • by stuzzo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,999 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

MonologExtenderBundle

Total Downloads Latest Stable Version, (*1)

The MonologExtenderBundle provides integration of the MonologExtender library into the Symfony framework., (*2)

Configuration

This is an example configuration to use mail, stream and html formatter., (*3)

monolog:
    handlers:
        main_critical:
            type:           fingers_crossed
            action_level:   debug
            handler:        grouped
            excluded_404s:
                            - ^/
        grouped:
            type:           group
            members:        [streamed_error, deduplicated, slackwebhook]
        streamed_error:
            type:           rotating_file
            max_files:      5
            path:           "%kernel.logs_dir%/%kernel.environment%_error.log"
            level:          error
            formatter:      stuzzo.logger.stream.formatter
        deduplicated:
            type:           deduplication
            handler:        swift
        swift:
            type:           swift_mailer
            from_email:     %mailer_sender%
            to_email:       %mailer_to%
            subject:        "[PROJECT] - Error %kernel.environment%"
            level:          error
            formatter:      stuzzo.logger.html.formatter
            content_type:   text/html
        slackwebhook:
            type:           slackwebhook
            channel:        %channel% # You can use a channel (with #channelName) or a user (with @userName)
            webhook_url:    %hook_url%
            level:          critical
            include_extra:  true
            formatter:      stuzzo.logger.html.formatter            

This is an example configuration to use slack and html processors., (*4)

services:
    app.processor.slack:
        class: Stuzzo\Bundle\MonologExtenderBundle\Processor\SlackUserDataProcessor # Add user info and better formatting
        arguments: ["@security.token_storage"]
        tags:
          - { name: monolog.processor, handler: slackwebhook } # It fires only for slack messages
          - { name: kernel.event_listener, event: kernel.request, method: onKernelRequest }

    app.processor.web:
        class: Stuzzo\Bundle\MonologExtenderBundle\Processor\WebUserDataProcessor # Add user info and better formatting
        arguments: ["@security.token_storage"]
        tags:
          - { name: monolog.processor, channel: request } # It fires only for channel request
          - { name: kernel.event_listener, event: kernel.request, method: onKernelRequest }

License

This bundle is released under the MIT license, (*5)

The Versions

02/02 2018

dev-master

9999999-dev

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

24/01 2018

2.1

2.1.0.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

22/01 2018

2.0

2.0.0.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

04/08 2017

1.2.0

1.2.0.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

31/07 2017

1.1.1

1.1.1.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

21/05 2017

1.1

1.1.0.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging

10/04 2017

1.0.0

1.0.0.0

Symfony Bundle that wraps Monolog extender library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alfredo Aiello

log logging