登录 Symfony Monolog Slackwebhookhandler 时出现问题

问题描述 投票:0回答:1

我在通过 monolog 登录到 Symfony 的 Slackwebhookhandler 时遇到问题。我的整个 monolog.yaml 包含在下面。我最不喜欢的是,我什至没有在任何地方看到任何关于我如何搞砸配置 yaml 的错误消息 - 它只是默默地失败了。我做错了什么才没有收到错误消息,并且无法登录到我的 slack webhook?

monolog:
channels:
    - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
handlers:
    main:
        type: stream
        path: "%kernel.logs_dir%/%kernel.environment%.log"
        level: debug
        channels: ["!doctrine"]
        formatter: App\Logging\ConciseLineFormatter
    streamout:
        type: stream
        path: php://stdout
        level: debug
        channels: ["!doctrine"]
        formatter: App\Logging\ConciseLineFormatter
    slack:
        type: slackwebhook
        level: debug
        channel: "#notifications-test"
        webhook_url: "https://hooks.slack.com/services/<MY TOKENS>"
php symfony monolog
1个回答
0
投票

事实证明 - 缓存问题。

symfony cache:clear
已排序。

© www.soinside.com 2019 - 2024. All rights reserved.