[$message as xs.anyAtomicType],
[$valueN as xs.anyAtomicType,...]
) as null
Logs a message to the log file ErrorLog.txt with the warning level.
If the first argument contains any placeholders, each placeholder is replaced with
the converted value from its corresponding argument.
Here are the placeholders:
- %s - String
- %d - Number (both integer and float)
- %j - JSON. Replaced with the string '[Circular]' if the argument contains circular references.
- % - single percent sign ('%'). This does not consume an argument.
var count = 5;
console.warn("count: %d", count);
// logs to ErrorLog.txt at the warning level
Copyright © 2017 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.