ajouve/monolog-redis-json-handler

v1.0.0 2016-05-11 09:19 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