Hi Tim,
thanks for your reply. Your hint helped me to stop javas error logging
while checking if the db is running and turing it on again afterwards.
Here is my approach of silencing javas error logging:
def setLogLevel(level:String){
val loggingProperties = new Properties()
loggingProperties.put( ".level", level)
val pos = new PipedOutputStream()
val pis = new PipedInputStream( pos)
loggingProperties.store( pos, "")
pos.close()
LogManager.getLogManager().readConfiguration(pis)
pis.close()
}
Now it's possible to turn logging of with setLogLevel("OFF") and turn
it on again with setLogLevel("ALL").
Best regards Tom