Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-log v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:48

mojo-log v0.1.1

Released: 2026-11-08 · Commit: 5566910 · Previous: v0.1.0

What it does

Structured logging for Mojo: levels, key=value fields, text or JSON-lines, stderr, file and journald sinks.

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) PASS: mojo-log-0.1.1-hb0f4dca_0.conda

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • 5566910 build: bump version to 0.1.1
  • c1d4b89 build: recipe pins mojo-compiler to the build's minor
  • bf575a7 chore(license): fill Apache-2.0 copyright notice

mojo-log v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:18

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.dumps over 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 Logger per thread.
  • Stray invalid UTF-8 bytes are not validated, only never a crash.

Commits

  • v0.1.0 first release

Upgrade / run

mojo run -I src app.mojo