PHP - specify logging level

In Python there is the option to specify the logging level e.g. so you don’t get INFO or DEBUG messages sent to Sentry.

I’m trying to find the equivalent for PHP (without framework) but can’t find anything in the docs. Can someone point me to the documentation for this? Or let me know how I would do this?