return
file = os.environ['LOG_DIRS'].split(',')[0] + '/pyspark.log'
logging.basicConfig(filename=file, level=logging.INFO, format=
    '%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s'
    )

def __getattr__(self, key):
    return getattr(logging, key)
YarnLogger.setup_logger()
PySpark logging from the executor