Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v73
  • v74
  • v73
  • v72
Login
  • Getting Started
  • Administrator documentation
  • Functional characteristics
  • Technology description
  • System requirements
  • Admin Panel
  • Platform installation
  • Platform configuration
  • Platform maintenance
  • Custom channels guide
    • Overview
    • Creating and configuring a channel
    • Entity field configuration
    • Template language
    • Entities
    • Pipes
      • Pipe: Basic Concepts
      • Result
      • Errors
      • Log
      • Pack
      • Unpack
      • HTTP Request
      • Store Set
      • Store Get
      • Selector
      • SQL
      • Eventer
      • Scheduler
    • Pipelines
  • Extra
  • Processing HTTP/HTTPS traffic
  • Administrator API
This is documentation for Altcraft Platform v73. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Custom channels guide
  • Pipes
  • Log
Documentation for version v73

Log

Description​

The log pipe writes a message to procpiper.log. Allows you to set the text of the message.

Peculiarities:

  • params.message must be a text

Structure​

FieldType of valueExampleRequiredDescription
idnumber10yesPipe's ID
typestring"log"yesType of a pipe
paramsLogParamsObject
noType-specific parameters
outsOutsObject
noPipe's outputs

ErrorParamsObject
FiTypeExampleReqieredDescription
prefixstring"Send|"no"<channel's id>|<pipe's id>"Custom prefix for log message.
message

string

"error http request $error.code $error.message"no""Text of a message.
levelstring"trace"no"info"

Logging level. Possible values:

  • info
  • debug
  • warn
  • error
  • trace

Errors​

  1. Error processing params.message - the template is incorrect or the field was not found.

Examples​

1.
{
"id": 10,
"type": "log",
"params": {
"message": "error http request $error.code $error.message"
},
"outs": {
"success": 20
}
}
{
"id": 10,
"type": "log",
"params": {
"message": "some message"
"level": "trace"
},
"outs": {
"success": 15
}
}
Last updated on Nov 13, 2023
Previous
Errors
Next
Pack
  • Description
  • Structure
  • Errors
  • Examples
© 2015 - 2025 Altcraft, LLC. All rights reserved.