Log Error

BlockUtilities

Log an error to the errors dashboard.

Inputs

Error TypeRequired

Severity level.

OptionsInfoWarningError
Error TitleRequired

Title for the error entry.

Example: Webhook failed

Error MessageRequired

Detailed error message.

Example: Request timed out

Outputs

Error ID

Identifier for the logged error.

Example: abc123def456

Build a bot using blocks like Log Error

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: log_error

Inputs

FieldInventScript nameValue
Error Typeerror_type"Info", "Warning", "Error"
Error Titleerror_titlee.g. "Webhook failed"
Error Messageerror_messagee.g. "Request timed out"

Outputs

FieldInventScript nameValue
Error IDerror_ide.g. "abc123def456"

Example InventScript

logError := log_error(Args{
	error_type:    "Error",
	error_title:   "Webhook failed",
	error_message: "Request timed out",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Error ID: " + logError.error_id,
})

More utilities blocks