Python3 has the argument stack_info
for logging.info()
:
https://docs.python.org/dev/library/logging.html#logging.Logger.debug
How to get this in Python2?
Python3 has the argument stack_info
for logging.info()
:
https://docs.python.org/dev/library/logging.html#logging.Logger.debug
How to get this in Python2?
Copyright © 2021 Jogjafile Inc.
The following module wrap the logging module with support to stack_info keyword argument. you can import this module and call the getLogger method similar to how you work with logging module.
PS - One downside to this approach is it will make one extra function call and that also will be visible in stack trace