The log functionality of the Servoy Application Server is based on log4j of the |Apache Logging Services|http://logging.apache.org/] project.
The logging mechanism is highly configurable and enables control over:
All log settings are stored in servoy.properties located in the <servoy>/application_server directory. The specific log properties are properties prefixed with 'log4j'.
Besides the log4j properties, administrators can also configure the servoy.client.report.max.valuelist.items property on the Servoy admin page, or directly in the servoy.properties file. This property is used to disable/enable the logging of messages that not all records can be loaded into the valuelist, i.e. when the valuelist contains more than 500 records. It is not recommended to set this property to false when running from the Servoy developer, otherwise the developers will not be aware of these warnings at all.
There are 6 levels of logging (In order of severity):
By default, the log level 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:
The first entry sets the log level for the internal Servoy Java class used for all logging done by Servoy.
The second entry sets the log level for the Java class used for all logging of the Wicket framework, used for the Servoy Web Client
The third entry sets the overall log level and specifies the output channels for the log.
To change the the log level for Servoy, replace 'WARN' in the first entry with, for example 'TRACE' to get the most logging information. The overall log level could also be set, but this would generate a lot of log data.
Servoy registers the following loggers:
The logging level can be set independently for all these loggers, by adding extra 'log4j.logger' entries in the servoy.properties file, like:
Setting the log level to DEBUG or TRACE will generate a lot of logging data. This is not recommended in a production environment, unless absolutely necessary. Make sure enough disk space is available.