Sending UDF output to the process log
There are methods in both JavaScript and Python to write the output to the UDF process log file. This will be useful during debugging. For example:
JavaScript:
console.log ( "Logged message” ) to log an info level message
console.error ( "Logged error” ) to log an error level message
Python:
vectorwise.dbname.log (<severity>, "Logged message”)
<severity> must be a string container one of the following:
error – to log an error level message
info – to log an info level message
An exception will be raised if the severity is not recognized.
Last modified date: 12/06/2024