Is there a way to disable hsqldb logging?

I have built-in Hsqldb created in my project. But it dumps a lot of exit information at work, and I currently don't need this information:

Mar 29, 2012 10:18:11 PM org.hsqldb.persist.Logger logInfoEvent
INFO: Checkpoint start
Mar 29, 2012 10:18:11 PM org.hsqldb.persist.Logger logInfoEvent
INFO: checkpointClose start
Mar 29, 2012 10:18:11 PM org.hsqldb.persist.Logger logInfoEvent
INFO: checkpointClose end
Mar 29, 2012 10:18:11 PM org.hsqldb.persist.Logger logInfoEvent
INFO: Checkpoint end

Is there any way to disable this output?

+5
source share
3 answers

Unfortunately, I do not believe in this. we have the same problem in our project. I believe that I checked the source at one point in time and came to the conclusion that hsqldb does not provide a way to influence this logging.

( @fredt ), jdk. "hsqldb.db" - WARNING . , logging.properties ( hsqldb), - Logger.getLogger("hsqldb.db").setLevel(Level.WARNING) ( , java util).

, hsqldb java. , , "hsqldb.reconfig_logging" "false" ( hsqldb).

+4

, .

/ , :

-Djava.util.logging.config.file =////hsqldblog.properties "

Java Hsqldb.

# Change hsqldb logging level 
org.hsqldb.persist = WARNING

, :

INFO CONFIG FINE FINER FINEST

Java

0

For Slf4j + Logback users:

Add log4j-over-slf4jas a dependency (do not forget to exclude the original dependency log4j, if any). If you are using Gradle, add something like this to your build.gradle:

runtime group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.25'

Then add this to your logback.xml:

<logger name="hsqldb.db" level="warn"/>
0
source

All Articles