Logging Level

For the GWT preview, the setting made in Preferences is the lowest level of logging available in preview. For example, if the logging level is set to INFO in the Preferences, you cannot change it to DEBUG in the preview pane.

The available log levels (GWT) are:

  • FATAL
  • ERROR
  • WARN
  • INFO (The default logging level)
  • DEBUG
  • TRACE

The verbosity (detail) of logging increases with the logging level in cumulative fashion. For example, the WARN level also shows all ERROR and FATAL messages; INFO also shows WARN messages; and so on.

You can choose the logging level in the preview pane using context.form.log or context.form.logger. The logger API is available in all the script contexts and it allows the user to log at all logging levels. See API for Scripting for details of log and logger APIs. The logging level specified applies only to that specific preview session. Messages logged by user scripts are shown in the DEBUG log level.

You can change the default logging level used in the preview tabs in the user preferences, under Window > Preferences > Form Designer > Preview.

At runtime, when GWT Forms are used, you can enable logging by using a URL parameter log_level. You need to set the value of the log_level parameter to any logging level. The specified log level is enabled in that case. For example, if you access Openspace as: http://<server>:<port>/openspace?log_level=INFO

You see INFO, WARN, ERROR and FATAL messages in the log viewer.