happyr / monolog-logstash-formatter
Monolog Logstash formatter
Installs: 72 641
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- monolog/monolog: ^3.2
README
# 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 }