Logging metrics to the Spark logger instead of stdout