How to log the start time and end time of each and every method in my Spark job without writing the same code multiple times?