[log.count]

log.count is a slot in the log namespace, in Hyperlambda, the language of Magic Cloud. Returns the total number of log entries, optionally restricted to a single content type.

  • Value (content-type), optional: Optional content type filter
  • Returns: Resolves to the number of log entries matching the optional query

Guide

How to use log.count

JSON declaration

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

JSON declaration
{
  "name": "log.count",
  "description": "Returns the total number of log entries, optionally restricted to a single content type",
  "signature": {
    "input": {
      "kind": "content-type",
      "description": "Optional content type filter",
      "required": false,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "integer,number",
      "description": "Resolves to the number of log entries matching the optional query"
    }
  }
}

← log.capabilities all log.* slots log.debug →