13-log-uuidok
Structure
importlog:lib/log.mq.mduuid:lib/uuid.mq.md
fn · h1Observable scripts without plugins
comment
fn · h1main
call
> log.info text=mid-m6-startcall
> log.debug text=skipped-by-defaultcall
> log.set_level level=debugcall
> log.debug text=now-visiblebind
`id` = > uuid.v4bind
`n` = > len `id`call
> print text=`n`Functions
Variables
-
id text4d941118-eb21-40d5-b2c8-c3208be6746f4d941118-eb21-40d5-b2c8-c3208be6746f
-
n int3636
Execution
INFO mid-m6-start
DEBUG now-visible
36
Source
--- title: Mid stdlib — log and uuid description: Level-filtered logs + UUID v4 (Mid M6) import log:lib/log.mq.md import 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`
Default log level is info; raise to debug when you need more. Mint ids with uuid.v4.