我使用的是akka stm,当我的应用程序启动时,它会打印出来(打印到stderr):
Okt 20, 2011 10:17:10 AM org.multiverse.api.GlobalStmInstance <clinit>
Information: Initializing GlobalStmInstance using factoryMethod 'org.multiverse.stms.alpha.AlphaStm.createFast'.
Okt 20, 2011 10:17:10 AM org.multiverse.stms.alpha.AlphaStm <init>
Information: Created a new AlphaStm instance
Okt 20, 2011 10:17:10 AM org.multiverse.api.GlobalStmInstance <clinit>
Information: Successfully initialized GlobalStmInstance using factoryMethod 'org.multiverse.stms.alpha.AlphaStm.createFast'.如何禁用它(日志记录)?
发布于 2011-11-18 00:26:18
虽然我确信通过配置xml文件有更好的解决方案,但这是一个对我有效的快速解决方案:
import java.util.logging.{Logger, Level}
object DisableLogging {
Logger.getLogger("org.multiverse.api.GlobalStmInstance").setLevel(Level.OFF)
Logger.getLogger("org.multiverse.stms.alpha.AlphaStm").setLevel(Level.OFF)
}https://stackoverflow.com/questions/7833003
复制相似问题