Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Nov 24, 2023
2 parents 30fbfe7 + 35a8d8d commit bd2be00
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/config/monolog.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,31 @@ LOG_CHANNEL=socket
LOG_SOCKET_URL=127.0.0.1:9913
```

## Symfony

Here is an example of how to configure Monolog to send logs to Buggregator in Symfony.

```yaml
# config/packages/dev/monolog.yaml
monolog:
handlers:
socket:
level: debug
type: socket
formatter: monolog.formatter.json
connection_string: '%env(MONOLOG_SOCKET_HOST)%'
```

### Configuration

```dotenv
MONOLOG_SOCKET_HOST=127.0.0.1:9913
```

> **Note:**
> Setting formatter `monolog.formatter.json` is critical. Otherwise, the Monolog server will not be able to parse the
> log.
## Other PHP frameworks

Install monolog
Expand Down

0 comments on commit bd2be00

Please sign in to comment.