Log
Log is a Pipe for writing messages to the procpiper.log log file. It is used for debugging and monitoring Pipeline execution.
Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | No | "" | Message text. Supports templating |
prefix | string | No | <channel id>|<pipe id> | Message prefix in the log |
level | string | No | info | Log level: info, debug, warn, error, trace |
Possible Errors
- Error processing the
params.messagetemplate — invalid template or field not found
Examples
Logging an HTTP Request Error
{
"id": 10,
"type": "log",
"params": {
"message": "error http request $error.code $error.message"
},
"outs": {
"success": 20
}
}
Logging with Trace Level
{
"id": 10,
"type": "log",
"params": {
"message": "some message",
"level": "trace"
},
"outs": {
"success": 15
}
}