<?php
/**
* To use just include this at the very beginning of each script.
* replace the interior of the function with whatever type of logging
* that you intend to use; I use sentry in this example.
**/
globalLogger::initialize(function ($varname, $value, $file) {
if (function_exists('silentSentryError'))
{
silentSentryError("{$varname} registered global usage should be fixed in {$file}.");
}
});
|