themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
670 stars 121 forks source link

Add deprecations logging support. #883

Closed jlambe closed 1 year ago

jlambe commented 1 year ago

Update logging ExceptionHandler to support deprecations and log them in a dedicated channel.

szepeviktor commented 1 year ago

@jlambe This reminds me of a recent WordPress core deprecation logger: https://github.com/szepeviktor/wordpress-website-lifecycle/blob/master/mu-plugins/_core-log-deprecated.php One can use Themosis logging instead of error_log

jlambe commented 1 year ago

@szepeviktor When are those hooks ran ?

szepeviktor commented 1 year ago

When deprecated core features (functions, constructors, included/missing files, function arguments, hooks) are used in themes/plugins/anywhere.