We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30fbfe7 + 35a8d8d commit bd2be00Copy full SHA for bd2be00
docs/config/monolog.md
@@ -75,6 +75,31 @@ LOG_CHANNEL=socket
75
LOG_SOCKET_URL=127.0.0.1:9913
76
```
77
78
+## Symfony
79
+
80
+Here is an example of how to configure Monolog to send logs to Buggregator in Symfony.
81
82
+```yaml
83
+# config/packages/dev/monolog.yaml
84
+monolog:
85
+ handlers:
86
+ socket:
87
+ level: debug
88
+ type: socket
89
+ formatter: monolog.formatter.json
90
+ connection_string: '%env(MONOLOG_SOCKET_HOST)%'
91
+```
92
93
+### Configuration
94
95
+```dotenv
96
+MONOLOG_SOCKET_HOST=127.0.0.1:9913
97
98
99
+> **Note:**
100
+> Setting formatter `monolog.formatter.json` is critical. Otherwise, the Monolog server will not be able to parse the
101
+> log.
102
103
## Other PHP frameworks
104
105
Install monolog
0 commit comments