Page 1 of 1

--Configure logging

PostPosted: Tue Mar 22, 2016 12:47 pm
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




JVx uses standard JDK logging API or log4j.

If you don't use a custom logging.properties file, the log mechanism won't work as expected because of standard log settings of JRE/JDK:

The default logging.properties file sets the global level to:

Code: Select all
.level= INFO

and also the console log handler level, to:

Code: Select all
java.util.logging.ConsoleHandler.level = INFO


If you change the log level of a logger (via About screen), it wouldn't change the log output because JVx doesn't recognize the log handler configuration.

It's best if you use a preconfigured file for your application:

logging.properties
(1.83 KiB) Downloaded 24 times

Simply copy the file in your test folder or any other folder in your classpath.

The example file sets the console log handler level to

Code: Select all
java.util.logging.ConsoleHandler.level = ALL