Skip to content

B-Galati/monolog-sentry-handler-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony project example with package bgalati/monolog-sentry-handler.

It implements what is described in the symfony guide.

Usage:

Feel .env.local with SENTRY_DSN environment variable.

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

About

Symfony project example with bgalati/monolog-sentry-handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published