Logging for MoonBit: plain text and JSONL appenders with timestamps, and size-triggered log rotation
Dependencies
| 接口 Interface | 说明 Description |
|---|---|
| plain(path, text) | ts text 文本行;Timestamp-prefixed text line |
| event(path, event, fields) | JSONL 事件行;JSONL event line |
| maybe_rotate(path, max, copytruncate?) | 超限轮转,返回是否轮转;Rotate past limit, returns rotated |
Install
Download zipLogging for MoonBit: plain text and JSONL appenders with timestamps, and size-triggered log rotation
Dependencies