docs(lib): narrate remaining stdlib modules (M2)

Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 11:47:35 +08:00
1 parent 53bc3538da
commit fecaacd5be
49 files changed
+617 -21

No files matched your search

+10
View File
@@ -3,6 +3,8 @@ title: lib/log
description: Level-filtered one-line logs (Mid M6 + Mid2 M10 fields). Default level info.
---
Level-filtered one-line logs (Mid M6 + Mid2 M10 fields). Default level info.
## set_level
+ `level`
@@ -14,6 +16,8 @@ level is debug / info / warn / error.
+ `text`
+ `fields`=None
Emit a debug log line; optional fields map.
**line = > host_log_line level="debug" text=`text` fields=`fields`**
1. `line`
> print text=`line`
@@ -24,6 +28,8 @@ level is debug / info / warn / error.
+ `text`
+ `fields`=None
Emit an info log line; optional fields map.
**line = > host_log_line level="info" text=`text` fields=`fields`**
1. `line`
> print text=`line`
@@ -34,6 +40,8 @@ level is debug / info / warn / error.
+ `text`
+ `fields`=None
Emit a warn log line; optional fields map.
**line = > host_log_line level="warn" text=`text` fields=`fields`**
1. `line`
> print text=`line`
@@ -44,6 +52,8 @@ level is debug / info / warn / error.
+ `text`
+ `fields`=None
Emit an error log line; optional fields map.
**line = > host_log_line level="error" text=`text` fields=`fields`**
1. `line`
> print text=`line`