DebugLevel Property

Description

This property stipulates the level of debugging to be used when running EditLive! for XML.

Syntax

JavaScript

setDebugLevel(strDebug);

Parameters

strDebugLevel

A string specifying the level of debugging to run EditLive! for XML with. There are several distinct possible debug levels:

  • fatal

  • error

  • warn

  • info

  • debug

  • http

The default value is info.

Examples

Example 16.13. DebugLevel Property Example Scripting

The following code would specify that the debug level is set to debug.

JavaScript

editlivejs.setDebugLevel("debug");

Remarks

All information produced via the setting of the debug level is outputted to the Java console.

The following is a list of the possible debug levels in order of increasingly detailed output:

fatal

This debugging level displays only error messages which prevent EditLive! for XML from continuing, thus resulting in termination of the program.

error

This debugging level displays error messages for cases in which EditLive! for XML can continue despite the error. However, the current EditLive! for XML operation will most likely fail due to the relevant error. This debugging level also displays all the debugging information that would be displayed should the debugging level be set to fatal.

warn

This debugging level displays messages indicating that an unexpected error has occurred and this may cause EditLive! for XML to behave in an unexpected manner. However, the current EditLive! for XML operation will most likely be completed successfully. This debugging level also displays all the debugging information that would be displayed should the debugging level be set to error.

info

This debugging level displays messages indicating that an event of some significance has occurred (e.g. a server has requested authentication details). EditLive! for XML expects such events and deals with them accordingly. This debugging level also displays all the debugging information that would be displayed should the debugging level be set to warn.

debug

This debugging level displays any information which may be useful for debugging purposes. This debugging level also displays all the debugging information that would be displayed should the debugging level be set to info.

http

This debugging level displays communications using the HTTP client component of EditLive! for XML (i.e. client server communications). This debugging level is most useful for tracking problems associated with HTTP connections. This debugging level also displays all the debugging information that would be displayed should the debugging level be set to debug.