ReviewOS

also looking at this

craft-native/craft

feat(log): --log-file, and a logger that survives being used

#78
Merged chris wants to merge feat/log-file into main
5 files +691 -37
packages/zig/src/main.zigmodified+9-0
Changes to packages/zig/src/main.zig
@@ -8,6 +8,15 @@ pub const macos = if (builtin.os.tag == .macos) else struct
88const BridgeAPI = .BridgeAPI;
99
1010// Re-export io_context so root modules can access it without dual-module conflicts
11/// The host-side logger, and the sink `--log-file` configures.
12///
13/// Exported here because `minimal.zig` — the executable's root — cannot
14/// `` directly: a file may belong to only one module per
15/// compilation and this one belongs to `craft`. `src/craft.zig` appears to
16/// export it as `craft.app.Log`, but that file is not a module root and
17/// nothing imports it, so it was never a reachable surface.
18pub const Log = ;
19pub const Logging = ;
1120pub const io_context = ;
1221pub const startup_timing = ;
1322pub const js_runtime = ;