Function |
Description |
---|---|
Writes an error text into a log and signals an error |
|
Returns the last error message |
|
Writes a warning message into a log |
|
Writes an informal message into a log |
|
Writes a trace message into a log |
|
Sets the detail level of trace messages in the a log |
Writes an error text into a log and signal an error
string uError(errortext)
Text to write to log file
Signal an error:
uError("'PP' is no valid country key.")
Returns the last error message
string uErrortext()
uErrortext() // returns last error text
Writes an informal message into a log
string uInfo(infotext)
Text to write to log file
Log an informal message:
uInfo("21445 records selected.")
Writes a warning message into a log
string uWarning(warningtext)
Text to write to log file
Log a warning message:
uWarning("The attribute for the customer name is null.")
Writes a trace message into a log.
You must manually set the trace level to at least 1before invoking the uTrace() function. To set the trace level to 1, do one of these:
Invoke uTracelevel(1) before invoking the uTrace() function.
If you are using ETL Development, set the trace level to 1 in the Default.ini file located in the etc directory of the installation folder. Restart ETL Development.
If you are using ETL Server, start the server with the “--tracelevel 1” option.
string uTrace(tracetext);
Text to write to log file
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).
uTracelevel(tracelevel)
Verbose message tracing may dramatically reduce performance.
Specifies the verbosity of trace messages. (0 = off, 5 = very verbose)
uTracelevel(5) // sets the tracelevel to 'very verbose'