'How to log source file and line number in Spark?

Is it possible to log out the source file and line number from a spark submit application using python? I've tried a number of things but haven't had any luck yet.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source