cx:message — Output a message each time a document is processed.


<p:declare-step type="cx:message" xmlns:cx="">
     <p:input port="source" sequence="true"/>
     <p:output port="result" sequence="true"/>
     <p:option name="log"/>                                        <!-- "error" | "warn" | "info" | "debug" | "trace" -->
     <p:option name="message" required="true"/>                    <!-- string -->


This step is mostly for debugging. It performs the identity step with the side-effect of writing a message to the console.

If you specify a value for the log option, the message is written to the log with the specified logging level instead of to the console.