Configure logging

Information about development with ProjX.

Configure logging

Postby Development@SIB » Tue Mar 22, 2016 12:47 pm

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 14 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
User avatar
Development@SIB
 
Posts: 310
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation