theorchard / monolog-cascade

Configure multiple loggers and handlers in the blink of an eye
MIT License
145 stars 62 forks source link

Added 'tags' option alias to set Loggly tags as opposed to using 'set… #23

Closed rantonmattei closed 9 years ago

rantonmattei commented 9 years ago

…_tag'

@mortaliorchard

we can now just simply write:

handlers:
    console:
        class: Monolog\Handler\StreamHandler
        level: DEBUG
        stream: php://stdout
    loggly:
        class: Monolog\Handler\LogglyHandler
        token: xxxx-xxxxx-xxxx-xxxx-xxxxxxx
        level: INFO
        tags: [cascade, waterfall]

loggers:
    my_logger:
        handlers: [console, loggly]

to configure Loggly handler with the desired tags.

/!\ Merging this is pending next Monolog's release as there is a bug in the Loggly handler. Fix has been provided but it is still on master.

xethorn commented 9 years ago

R+

rantonmattei commented 9 years ago

I contacted Monolog's author last night and he released a new version including the fix. Just added the updated composer.json to this PR. This is good to go