chill-skeleton-basic/config/packages/prod/monolog.yaml
2022-07-11 21:32:20 +02:00

34 lines
868 B
YAML

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']
console:
type: console
process_psr_3_messages: false
channels: ['!event', '!doctrine', '!console']
bubble: false