How to get the current function name and file name and location (path) in python ? And how to get the calling function data as-well?
I’ve been searching for some useful code examples on this subject for creating a simple logger for my program.
Getting file name, and function name from within a function in python
Here is some useful code I’d like to summaries this subject for future use and easy search: