Function |
Description |
---|---|
Writes an error text into log and signal an error |
|
Returns the last error message |
|
Writes a warning message into log |
|
Writes an informal message into log |
|
Writes a trace message into log |
|
Sets the detail level of trace messages in the log |
Writes an error text into 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 log
string uInfo(infotext)
Text to write to log file
Log an informal message
uInfo("21445 records selected.")
Writes a warning message into 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 log.
You must manually set the trace level to 1 atleast before invoking the uTrace() function. To set the trace level to 1, you can 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)
Heavy logging slows execution dramatically.
Specifies the verbosity of trace messages. (0 = off, 5 = very verbose)
uTracelevel(5) // sets the tracelevel to 'very verbose'