chill-skeleton-basic/config/packages/prod/monolog.yaml

35 lines
912 B
YAML
Raw Permalink Normal View History

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']
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