Hsqldb messed up my server logs

I have a server that I created in Java that should use a database, I selected HSQLDB.

So, I have many entries on my server, for example:

Logger.getLogger(getClass().getName()).  severe or info  ("Some important information");

When I start my server, it goes into System.out, which, in my opinion, has the default configuration java.util.logging?, as long as this is normal for me, and later I will make it go to the file ...

But the problem is that when I run hsqldb, it messes up the default setting and I can no longer read the log entries System.out.

I already tried to change hsqldb.log_data=false, but it still messed up the default configuration.

Can someone help me? I do not want to log hsqldb events, only my server ones.

thank

+3
source share
3 answers

This issue has been published and fixed in the latest version 2.2.0 released today.

Basically, you set the system property hsqldb.reconfig_loggingto a String value false.

The system property is usually set with the -D parameter in the Java launch command for your application:

java -Dhsqldb.reconfig_logging = false ....

See below for more details on the change:

http://sourceforge.net/tracker/?func=detail&aid=3195462&group_id=23316&atid=378131

In addition, when you use the fremework logger for your application, you must configure it directly to choose which log levels to accept and which to ignore.

The parameter hsqldb.applogdoes not affect the frame logging and controls the file log.

hsqldb.log_data=false . .

+4

hsqldb.applog 0, *.app.log.

+1

Start your server with a property indicating the location of the selected properties file:

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

Which contains the following line to change the Java registry for Hsqldb.

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

Please note that you can choose one of the following levels:

SERVER WARNING INFO CONFIG FINE FINER FINEST

0
source

All Articles