Child pages
  • Server Log Settings

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All log settings are stored in:

  • before Servoy 8.4: servoy.properties located in the <servoy>/application_server directory. The specific log properties are properties prefixed with 'log4j'.
  • Servoy 8.4 and later: all log settings are in a separate file: log4j.xml located in the <servoy>/application_server

In case of WAR deployment, the export as war wizard will allow you to specify the log4j.xml/servoy.properties that you want the war deployment to use.

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.

...

By default, the log level is set to WARN. This means that all WARN, ERROR and FATAL messages will be logged.  Starting with Servoy 8.4 all log settings are in a separate file: log4j.xml. Some entries we have there:

Code Block
titleLog Some log level settings in log4j.xmlfrom servoy.properties (< 8.4)
log4j.logger.com.servoy.j2db.util.Debug=WARN
log4j.logger.org.apache.wicket=WARN
log4j.logger.com.org.sablo.websocket=WARN
log4j.rootCategory=WARN, file, configservlet


Code Block
titleSome log level settings from log4j.xml (>= 8.4))
    <Loggers>
        <Logger name="com.servoy.j2db.util.Debug" level="WARN" />
        <Logger name="org.apache.wicket" level="WARN" />
        <Logger name="org.sablo.websocket" level="WARN" />
        <Root level="WARN">
            <AppenderRef ref="asyncfile" />
            <AppenderRef ref="configservlet" />
            <AppenderRef ref="debugconsole" />
            <!-- <AppenderRef ref="stdout" /> -->
        </Root>
    </Loggers>


The first entry sets the log level for the internal Servoy Java class used for all most of the application server level 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.

...