Title: How to remove E_DEPRECATED error level ?
Last modified: March 26, 2024

---

# How to remove E_DEPRECATED error level ?

 *  Resolved [challet](https://wordpress.org/support/users/challet/)
 * (@challet)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/)
 * Hello,
 * When setting the loger to the INFO level, there might be many E_DEPRECATED errors
   showing. They disappear when changing it to NOTICE level, but the others E_INFOS
   are removed too.
 * I’ve tried changing calling the following from an mu plugin but they are still
   here :
 * `error_reporting(E_ALL ^ E_DEPRECATED);`
 * Would there be a way ot get rid of them ?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17528974)
 * Hello!
 * There’s no way to filter logged events (that the way a logger works). You can
   filter them when you display events in services like DataDog, Loki, etc.
 * If you want to get rid of all PHP events, you can go in the “listeners” tab (
   in settings) and uncheck PHP as source.
 *  Thread Starter [challet](https://wordpress.org/support/users/challet/)
 * (@challet)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17529242)
 * Thank you for your quick answer, I’m not sure I understand it though as I can
   see in the “WordPress event logger” options a “minimal level” setting. Or maybe
   the E_DEPRECATED level cannot be disjoined from the E_INFO ?
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17529578)
 * **E_DEPRECATED** and **E_INFO** are PHP error levels.
 * **INFO** is a standard severity level (DecaLog use these levels, not PHP ones).
 * PHP **E_DEPRECATED** is an **INFO** severity level based on the [8 DecaLog levels](https://decalog.io/sdk/wordpress-events-logging/)
   which are, in turn, mapped onto [standard severity levels](https://en.wikipedia.org/wiki/Syslog#Severity_level).
 * _Note: E\_INFO is a PHP error level, “INFO” is a severity level…_
 *  Thread Starter [challet](https://wordpress.org/support/users/challet/)
 * (@challet)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17529678)
 * That’s a lot clearer, thank you.
 * And so, here there is no way to tell PHP what to send to the logger ?
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17529713)
 * Exactly. You’re right.
 *  Thread Starter [challet](https://wordpress.org/support/users/challet/)
 * (@challet)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17532067)
 * I dug a bit more for my own understanding, and I that would most certainly be
   related to the [set_error_handler](https://www.php.net/manual/en/function.set-error-handler.php)
   function last parameter:
 * > […] Without this mask set the `callback` will be called for every error regardless
   > to the setting of the [error_reporting](https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting)
   > setting.
 * Would it be conceivable to add this extra parameter in the decalog code ? Basically,
   it would replicate the core error_reporting value.
    -  This reply was modified 2 years, 2 months ago by [challet](https://wordpress.org/support/users/challet/).
      Reason: better english
    -  This reply was modified 2 years, 2 months ago by [challet](https://wordpress.org/support/users/challet/).
      Reason: better english again
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17724396)
 * Hello!
 * Thank you so much for your suggestion. The PR you’ve done on Github has been 
   merged and this feature will be released with 3.11.0 version…
 * Thanks again <3

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to remove E_DEPRECATED error level ?’ is closed to new replies.

 * ![](https://ps.w.org/decalog/assets/icon-256x256.png?rev=2168815)
 * [DecaLog](https://wordpress.org/plugins/decalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/decalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/decalog/)
 * [Active Topics](https://wordpress.org/support/plugin/decalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/decalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/decalog/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/how-to-remove-e_deprecated-error-level/#post-17724396)
 * Status: resolved