Tuesday, December 9, 2014

Programatically Disable all forms of logging to the console while running SPARK sbt application



First of all import log4j Logger and Level.

import org.apache.log4j.Logger
import org.apache.log4j.Level


Then add these two lines for disable logging.

Logger.getLogger("org").setLevel(Level.OFF)
Logger.getLogger("akka").setLevel(Level.OFF)


Try :) 

1 comment:

Total Pageviews

Translate