HI
I've been considering building a debugging/logging framework for complex php applications.
Since debugging PHP appz is really a pain in the ass. I want to do something like this
function debug($msg)
{
echo __CLASS__."::"__FUNCTION__" ".$msg";
}
and implement this in every function of an framework file.
BUT, the problem is that these constants are related to the executing code, of course, so it gets the function name "debug".
Is there anyway to let this function retrieve the class & function name of the script that executing this function?
I've looked at eval but that didn't worked out.
Any suggestion is very welcome!
Thanx in advance