https://www.javacodegeeks.com/2016/08/functional-approach-logging-apache-spark.html
A Functional Approach to Logging in Apache Spark