This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-log v0.1.0
mojo-log v0.1.0
Released: 2026-11-04 · Commit: the one tagged v0.1.0 · Previous: first release
What it does
Structured logging for Mojo: levels, key=value fields, text or JSON-lines, stderr, file and journald sinks.
Highlights
- A disabled call costs one compare (3 ns); an enabled call allocates nothing after the first line.
- 1M JSON lines in about 0.85 s against Python 4.9 s, same 11 MB peak RSS.
- JSON is byte-identical to Python
json.dumpsover 3000 seeded random records.
Changes
First release, no earlier version.
Verified
| Check | Result |
|---|---|
scripts/check.sh: 3000 records x (json, text) vs Python, corrupted-expectation control, 0 allocations over 1M+1M calls, 5 API tests, README example, journald read back |
PASS all |
Known limits
- Linux. journald needs
libsystemd.so.0, otherwise skipped at run time. - Not thread-safe: one
Loggerper thread. - Stray invalid UTF-8 bytes are not validated, only never a crash.
Commits
v0.1.0first release
Upgrade / run
mojo run -I src app.mojo