[log.debug]

log.debug is a slot in the log namespace, in Hyperlambda, the language of Magic Cloud. Writes a debug-level log entry; useful during development for high-volume diagnostic detail.

  • Value (log-message,text), required: Log message to write
  • Returns: Id of the log entry created, or null if the configured log level filtered it out

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
any node name string no Metadata entry stored with the log item when the slot has an input value; otherwise evaluated content fragment. Can be repeated.

Guide

How to use log.debug

JSON declaration

This is the complete declaration of log.debug, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "log.debug",
  "description": "Writes a debug-level log entry; useful during development for high-volume diagnostic detail",
  "signature": {
    "input": {
      "kind": "log-message,text",
      "description": "Log message to write",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": {
      "*": {
        "type": "string",
        "kind": "log-metadata",
        "description": "Metadata entry stored with the log item when the slot has an input value; otherwise evaluated content fragment",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrMore",
        "role": "DynamicMap",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Value",
      "kind": "log-entry-id",
      "description": "Id of the log entry created, or null if the configured log level filtered it out"
    }
  }
}

← log.count all log.* slots log.error →