[issue29036] logging module: Add `full_module_name` to LogRecord details
Vinay Sajip
report at bugs.python.org
Thu Aug 9 02:21:13 EDT 2018
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
The full module name isn't readily available. The value that sets the LogRecord's pathname attribute [which is obtained from the Python code object for the caller] is used to derive the filename attribute (by taking the basename of the pathname) and the filename is used to determine the module attribute (by just dropping the extension from the filename). So if you really need the modulename, you would have to derive it from the pathname.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29036>
_______________________________________
More information about the Python-bugs-list
mailing list