Write to Log
Description
The Write to log action writes a specific string to the Hop logging system.
This action is similar to the Write To Log transform.
Typical use cases are logging variable values and additional, custom logging information to the Hop logging system.
| Be careful when writing variables for (unencrypted) passwords or other sensitive information to the Hop logging system! |
Parameters and variables must be specified in the Log message section.
A Logging level must be set. Set the Log detail level to Basic if you want parameters and variables to be printed out.
Example to print parameter or variable in Log message section: COUNTER: ${COUNTER}
| If an error stops anything from being written to the log, then disable the Hops that fail, add logging, and re-run. |
Options
| Option | Description |
|---|---|
Action name |
The name of the workflow action. |
Log level |
The logging level to use. See Logging for more details. |
Log subject |
The subject to use in the logging line(s) |
Log message |
The log message to write to the log |
Result
What this action passes on to the next action. See Action results for how results travel through a workflow.
| Result | Value |
|---|---|
True |
The message was written, or there was nothing to write: an empty message, or a Log level that the workflow’s log level doesn’t show. The number of errors of the previous action is kept: this action doesn’t reset it. As the last action after an action with errors (for example a failed action on a failure hop), the workflow still ends as failed, although this action is true: add a Success action after it to end the workflow successfully. |
False |
Only when writing the message fails, with 1 error. |
Result files |
Passed on unchanged. |
Result rows |
Passed on unchanged. |