标签:tty pretty log4j process proc com cal string imp
如何在Eclipse中屏蔽日志
//屏蔽日志 Eclipse Java
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
Logger.getLogger("org.apache.spark").setLevel(Level.WARN);
Logger.getLogger("org.eclipse.jetty.server").setLevel(Level.OFF);
//Scala
屏蔽日志
与在Java中是一样的
import org.apache.log4j.{Level, Logger}
Logger.getLogger("org.apache.spark").setLevel(Level.WARN)
Logger.getLogger("org.eclipse.jetty.server").setLevel(Level.OFF)
标签:tty pretty log4j process proc com cal string imp
原文地址:http://www.cnblogs.com/followyourdream/p/6915658.html