Skip to content

Happyr/monolog-logstash-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logstash formatter for Monolog v3

#    config/prod/monolog.yaml
monolog:
    handlers:
        filter_for_errors:
            type: fingers_crossed
            action_level: warning
            handler: cloudwatch
            buffer_size: 100
            excluded_http_codes: []

        cloudwatch:
            type: stream
            path: 'php://stderr'
            formatter: 'app.monolog.formatter.logstash'
            level: info

services:
    app.monolog.formatter.logstash:
        class: Happyr\MonologLogstashFormatter\LogstashFormatter
        arguments:
            - 'app.example.com'

    monolog.processor.uid:
        class: Monolog\Processor\UidProcessor
        autoconfigure: true
        tags:
            - { name: monolog.processor, handler: cloudwatch }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages