Writes error text into a log file and breaks from the current function or programming context. The function returns the message written.
string uError(errortext)
Text to write to log file.
To signal an error:
uError("'PP' is no valid country key.")
Returns the last error message. The error text will be internally cleared, so it can only be read once.
string uErrortext()
To retrieve the last errortext:
uErrortext() // returns last error text
Writes an informal message into the log file. The function returns the message written.
string uInfo(infotext)
Text to write to log file.
To log an informal message:
uInfo("21445 records selected.")
Writes a warning message into the log. The function returns the message written.
string uWarning(warningtext); string errortext;
Text to write to log file.
To log a warning message:
uWarning("The attribute for the customer name is null.")
Writes a trace message into the log. The function returns the message written.
string uTrace(tracetext)
Text to write to log file.
To log a trace message:
uTrace("CUSTOMER_NAME = " + CUSTOMER_NAME)
Sets the detail level of trace messages in the log. The range of tracelevel is from 0 (no trace) to 5 (very verbose).
Heavy logging dramatically slows down performance.
uTracelevel(tracelevel)
Specifies the verbosity of trace messages (0=off, 5=very verbose).
To set the trace level:
uTracelevel(5) // sets the tracelevel to 'very verbose'