Document Information

Last modified:
2011/02/22 12:31 (external edit)

This is documentation for qooxdoo 0.8.x only. You might be interested in consulting the latest docs.

Logging System

The logging API allows for a definition of what is logged and where it is logged, while trying to keep usage as simple as possible. The logging system in 0.8 should be easier to use than in the previous versions.

Writing Log Messages

Every qooxdoo object has four logging methods debug(), info(), warn() and error(). Each method takes two parameters: The log message (String) and an error object (Error). The latter is optional.

The name of the method defines the log level your log message will get. If you want to log a message that is interesting for debugging, then use debug(). If you want to log a general information, use info(). If you want to log a warning, use warn(). Errors should be logged with error(). Have a look to the API documentation of the class qx.core.Object for more information.

So for writing a log message just call:

this.debug("Hello world");

Information

Last modified:
2011/02/22 12:31 (external edit)

Account

 
 
A book on qooxdoo RIAs, authored  by community members
JS Tutorial, JavaScript Tutorial, JavaScript Guide, Learn JavaScript JS, How To Learn JS, Learning JavaScript
 

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.