If you are still interested in the answer:
$trace = debug_backtrace(); $trace = $trace[0]; Helper::logToFile('called deprecated method '.__ FUNCTION __.' on line '.$trace['line'].' in file '.$trace['file'], 'deprecated');
Where the log method for the file might look:
$text .= "\n"; $file = fopen('log/deprecated', 'a+'); fputs($file, $text, strlen($text)); fclose($file);
wolxXx
source share