Created
September 19, 2018 04:55
-
-
Save bnf/5b0d366d6b9f7bd5b965f83f6e8cdedd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list($childClass, $caller) = debug_backtrace(false, 2); | |
file_put_contents('./caller.log', $objectName . PHP_EOL . ' ' . $caller['class'] . '::' . $caller['function'] . PHP_EOL . ' ' . $childClass['file'] . ' (' . $childClass['line'] . ')' . PHP_EOL, FILE_APPEND); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment