Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b-galati/monolog-sentry-handler-example
Symfony project example with bgalati/monolog-sentry-handler
https://github.com/b-galati/monolog-sentry-handler-example
Last synced: about 1 month ago
JSON representation
Symfony project example with bgalati/monolog-sentry-handler
- Host: GitHub
- URL: https://github.com/b-galati/monolog-sentry-handler-example
- Owner: B-Galati
- License: mit
- Created: 2022-07-02T12:58:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T13:20:00.000Z (10 months ago)
- Last Synced: 2024-10-14T06:25:41.117Z (2 months ago)
- Language: PHP
- Size: 64.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Symfony project example with package [`bgalati/monolog-sentry-handler`](https://github.com/B-Galati/monolog-sentry-handler-example).
It implements what is described in the [symfony guide](https://github.com/B-Galati/monolog-sentry-handler/blob/main/doc/guide-symfony.md).
### Usage:
Feel `.env.local` with `SENTRY_DSN` environment variable.
```shell
docker run -d --rm -p 15672:15672 -p 5672:5672 --hostname my-rabbit --name my-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq:3-management
composer install
symfony server:start# Modify LogController as you like and then call it to trigger some Sentry events
curl localhost:8000/log# Trigger sentry events from failing command
symfony console unknown-command
symfony console about unknown-argument# Modify LogHandler as you like and then call it to trigger some Sentry events
symfony console messenger:dispatch:log
symfony console messenger:consume async
```