Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
river: leverage std.log.defaultLog()
river/main.zig | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/river/main.zig b/river/main.zig
index 210e2dc..37a7daa 100644
--- a/river/main.zig
+++ b/river/main.zig
@@ -322,10 +322,7 @@ pub fn logFn(
if (scope != .default and !log_scopes.contains(scope)) return;
- const scope_prefix = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
-
- stderr.print(level.asText() ++ scope_prefix ++ format ++ "\n", args) catch return;
- stderr.flush() catch return;
+ log.defaultLog(level, scope, format, args);
}
/// See wlroots_log_wrapper.c