Answer the question
In order to leave comments, you need to log in
Why can't the Symfony handler be processed in Monolog?
Hello everyone, please tell me why the Symfony handler can not be processed in Monolog?
I use Symfony 4.4
in services.yaml there is a handler
telegram_handler:
class: App\Logger\Telegram\TelegramHandler
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [ '!event' ]
telegram:
type: service
channels: [ 'app' ]
id: telegram_handler
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: [ '!event' ]
telegram:
type: service
channels: [ 'app' ]
id: telegram_handler
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question