Make prose-unified Markup the only runtime: bold segments are executable, italic is return, params can be inferred from body/prose, with no v0.2 dual mode. Migrate lib and structure/keywords golds; gate on tests/markup-v03. Co-authored-by: Cursor <cursoragent@cursor.com>
52 lines
846 B
Markdown
52 lines
846 B
Markdown
---
|
|
title: lib/log
|
|
description: Level-filtered one-line logs (Mid M6 + Mid2 M10 fields). Default level info.
|
|
---
|
|
|
|
## set_level
|
|
+ `level`
|
|
|
|
level is debug / info / warn / error.
|
|
|
|
*> host_log_set_level level=`level`*
|
|
|
|
## debug
|
|
+ `text`
|
|
+ `fields`=None
|
|
|
|
**line = > host_log_line level="debug" text=`text` fields=`fields`**
|
|
1. `line`
|
|
> print text=`line`
|
|
2. **
|
|
****
|
|
|
|
## info
|
|
+ `text`
|
|
+ `fields`=None
|
|
|
|
**line = > host_log_line level="info" text=`text` fields=`fields`**
|
|
1. `line`
|
|
> print text=`line`
|
|
2. **
|
|
****
|
|
|
|
## warn
|
|
+ `text`
|
|
+ `fields`=None
|
|
|
|
**line = > host_log_line level="warn" text=`text` fields=`fields`**
|
|
1. `line`
|
|
> print text=`line`
|
|
2. **
|
|
****
|
|
|
|
## error
|
|
+ `text`
|
|
+ `fields`=None
|
|
|
|
**line = > host_log_line level="error" text=`text` fields=`fields`**
|
|
1. `line`
|
|
> print text=`line`
|
|
2. **
|
|
****
|