ajouve/monolog-redis-json-handler

a monolog redis handler with json output

v1.0.0 2016-05-11 09:19 UTC

This package is not auto-updated.

Last update: 2024-12-22 03:00:38 UTC


README

Symfony configuartion

Service

redis:
    class: Predis\Client
    arguments:
        -
            scheme: tcp
            host: "%redis_host%"
            port: "%redis_port%"
            password: "%redis_password%"

monolog_redis_json_handler:
    class: MonologRedisJson\Handler
    arguments:
        - '@redis'
        - 'monolog'
        - 200
    calls:
        - [addMetaData, ['application', 'my_app']]

Config

monolog:
    handlers:
        redis:
            type: service
            id: monolog_redis_json_handler