We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature or option flag for reporting the source line & filename where the log message originated.
The text was updated successfully, but these errors were encountered:
For reference, here's the code to do it (Python 3):
import inspect # Stack: # [0] - this function # [1] - caller # [2] - ... stack = inspect.stack() # Record: # [0] - frame object # [1] - filename # [2] - line number # [3] - function # ... record = stack[2] mod = inspect.getmodule(record[0]) mod_name = mod.__name__ if mod else '' name = mod_name + ':' + record[3] + ':' + str(record[2])
Sorry, something went wrong.
No branches or pull requests
Add feature or option flag for reporting the source line & filename where the log message originated.
The text was updated successfully, but these errors were encountered: