我正在使用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'.
如何禁用它(记录)?
答案 0 :(得分:1)
虽然我确信通过config 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)
}