buggregator / docs

Buggregator official documentation
https://docs.buggregator.dev/
7 stars 8 forks source link

[Feature] Symfony - Monolog #1

Closed gander closed 9 months ago

gander commented 9 months ago

Symfony - Monolog

.env.local

MONOLOG_SOCKET_HOST=127.0.0.1:9913

config/packages/dev/monolog.yaml

monolog:
    handlers:
        socket:
            level: debug
            type: socket
            formatter: monolog.formatter.json
            connection_string: '%env(MONOLOG_SOCKET_HOST)%'

Note:

Setting formatter: monolog.formatter.json is critical. Without it, you get an error similar to: https://github.com/buggregator/server/issues/87

butschster commented 9 months ago

Hello @gander,

Thank you for your assistance!

I've recently submitted a new pull request at https://github.com/buggregator/docs/pull/2. I would appreciate it if you could review it. Additionally, I'm planning to expand the documentation to include more details about integration with Symfony. If you have any additional information or insights on this topic, I would be very happy to receive them. Your expertise would be greatly valued in enhancing our documentation.