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 :) 

2 comments:

  1. Really worked for me!!! exactly what i want.
    Thanks

    ReplyDelete
  2. So far, my experience with this pin download tool has been smooth and reliable. It's quick, easy to use, and doesn't require any complicated steps. I thought I'd share it here in case someone else is looking for a convenient way to save Pinterest content.

    ReplyDelete