2022-07-11 17:27:00 +00:00
|
|
|
services:
|
|
|
|
monolog.gelf_handler:
|
|
|
|
class: Monolog\Handler\GelfHandler
|
|
|
|
arguments:
|
|
|
|
- '@gelf.publisher'
|
|
|
|
|
|
|
|
gelf.publisher:
|
|
|
|
class: Gelf\Publisher
|
|
|
|
arguments: ['@gelf.ignore_error_transport']
|
|
|
|
|
|
|
|
gelf.ignore_error_transport:
|
|
|
|
class: Gelf\Transport\IgnoreErrorTransportWrapper
|
|
|
|
arguments: ['@gelf.transport']
|
|
|
|
|
|
|
|
gelf.transport:
|
|
|
|
class: Gelf\Transport\UdpTransport
|
|
|
|
arguments:
|
|
|
|
- "%env(resolve:GELF_HOST)%"
|
|
|
|
- "%env(resolve:GELF_PORT)%"
|
|
|
|
|
|
|
|
monolog:
|
|
|
|
handlers:
|
|
|
|
graylog:
|
|
|
|
type: service
|
|
|
|
id: monolog.gelf_handler
|
|
|
|
level: info
|
|
|
|
channels: ['!event', '!php']
|
2023-09-06 10:14:53 +00:00
|
|
|
excluded_http_codes: [404, 405]
|
2022-07-11 17:27:00 +00:00
|
|
|
|
|
|
|
console:
|
|
|
|
type: console
|
|
|
|
process_psr_3_messages: false
|
|
|
|
channels: ['!event', '!doctrine', '!console']
|
|
|
|
bubble: false
|