Page History
...
All log settings are stored in servoy.properties located in the <servoy>/application_server directory. The specific log properties are properties prefixed with 'log4j'.
...
Changing the loglevel
...
There are 6 levels of logging (In order of severity):
- FATAL: The FATAL level designates very severe error events that will presumably lead the application to abort.
- ERROR: The ERROR level designates error events that might still allow the application to continue running.
- WARN: The WARN level designates potentially harmful situations.
- INFO: The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
- DEBUG: The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
- TRACE: The TRACE Level designates finer-grained informational events than the DEBUG
By default, the loglevel is set to WARN. This means that all WARN, ERROR and FATAL messages will be logged. In the servoy.properties file, there are three entries:
Code Block | ||
---|---|---|
| ||
log4j.logger.com.servoy.j2db.util.Debug=WARN
log4j.logger.org.apache.wicket=WARN
log4j.rootCategory=WARN, file, configservlet
|
The first entry sets the loglevel for the internal Servoy Java class used for all logging done by Servoy.
The second entry sets the loglevel for the Java class used for all logging of the Wicket framework, used for the Servoy Web Client
The third entry sets the overall loglevel and specifies the output channels for the log.
To change the the overall loglevel, replace 'WARN' in the third entry with, for example 'TRACE' to get the most logging information.
Warning | ||
---|---|---|
| ||
Setting the loglevel to DEBUG or TRACE will generate a lot of logging data. This is not recommended in production environment, unless absolutely necessary. Make sure enough diskspace is available |
Note | ||
---|---|---|
| ||
For more information on log4j, visit http://logging.apache.org/log4j/ or visit the Frequently Asked Technical Questions section |