Reputation: 5844
I am using akka stm and when my application starts it prints out (to the 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'.
How can I disable it (logging)?
Upvotes: 1
Views: 346
Reputation: 157
Although I'm sure there is a better solution via config xml files, this is a quick fix which worked for me:
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)
}
Upvotes: 1