Php Sentry 2.0 with Monolog

#1

How can I setup the new sentry unified sdk (2.x) with php monolog?

#2

up!

#3

Would be nice to have some docs or if someone knows a package where we can have alternatives for Monolog\Handler\RavenHandler and Raven_Breadcrumbs_MonologHandler.

#4

I created my own AbstractProcessingHandlers for normal logs and logs as breadcrumbs. You can base them on the old Raven handlers, but changing where it calls sentry client to letting it call the sentry hub.
Similar to how it is done for laravel: https://raw.githubusercontent.com/getsentry/sentry-laravel/master/src/Sentry/Laravel/SentryHandler.php

#5

@NielsCor What do I set for HubInterface in SentryHandler?

#6

I got it working!