MessageLog Class Reference

The MessageLog JavaScript global object. Print message to the Message Log view or set on/off the debug mode. More...

Public Slots

void trace (const String &message)
 Prints message to message log. More...
 
void debug (const String &messageIfDebug)
 Prints message to message log when in debug mode. More...
 
void error (const String &message)
 Prints message to message log as an error. More...
 
String getLog ()
 
void setDebug (bool b)
 Toggle debug mode. More...
 
bool isDebug ()
 Query debug mode status. More...
 
void clearLog ()
 

Detailed Description

The MessageLog JavaScript global object. Print message to the Message Log view or set on/off the debug mode.

MessageLog allows scripts to write in the message log windows.

Member Function Documentation

◆ clearLog

void MessageLog::clearLog ( )
slot

◆ debug

void MessageLog::debug ( const String &  messageIfDebug)
slot

Prints message to message log when in debug mode.

◆ error

void MessageLog::error ( const String &  message)
slot

Prints message to message log as an error.

When running as an interactive application, this will report the error in a modal dialog box (at the end of the script only). In batch mode, the error is logged to the log file, like trace().

◆ getLog

String MessageLog::getLog ( )
slot

◆ isDebug

bool MessageLog::isDebug ( )
slot

Query debug mode status.

◆ setDebug

void MessageLog::setDebug ( bool  b)
slot

Toggle debug mode.

◆ trace

void MessageLog::trace ( const String &  message)
slot

Prints message to message log.