Hi Steve,

You can use fn:trace to output the argument, which will itself be passed on unchanged, to standard error (or to the info view, if you use the GUI). If you want to swallow the output value, you can use the BaseX-specific function prof:dump. In web applications, you can output values to the database logs via admin:write-log.

Hope this helps 
Christian



Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu> schrieb am Sa., 10. Aug. 2019, 16:42:
Is there an equivalent to console.log or xsl:message in XQuery or BaseX ?

I know I could use the basex file: module to write to a file, but is there anything that works with the logging system to direct output according to the context ?

— Steve Majewski