marqdo

Mid stdlib — log and uuidok

features/13-log-uuid.mq.md

文档

log:lib/log.mq.mduuid:lib/uuid.mq.md

Observable scripts without plugins

说明

Default log level is info; raise to debug when you need more. Mint ids with uuid.v4.

main

说明
> log.info text="mid-m6-start"
> log.debug text="skipped-by-default"
> log.set_level level="debug"
> log.debug text="now-visible"
id = > uuid.v4
n = > len `id`
> print text=n
Functions
Variables
  • description text
    Level-filtered logs + UUID v4 (Mid M6)
  • id text
    f84aa6a8-8d17-4674-924a-c4415b1c7267
  • markup text
    occlusion
  • n int
    36
  • title text
    Mid stdlib — log and uuid
可执行知识(辅助)

运行与结果

INFO mid-m6-start DEBUG now-visible 36
完整源码
---
markup: occlusion
title: Mid stdlib — log and uuid
description: Level-filtered logs + UUID v4 (Mid M6)
import:
  log: lib/log.mq.md
  uuid: lib/uuid.mq.md
---

# Observable scripts without plugins

Default log level is info; raise to debug when you need more. Mint ids with uuid.v4.

# main

> log.info text="mid-m6-start"

> log.debug text="skipped-by-default"

> log.set_level level="debug"

> log.debug text="now-visible"

**id = > uuid.v4**
**n = > len `id`**
> print text=`n`

Variable