#custom log function not being called
1 messages · Page 1 of 1 (latest)
pub fn logFn(
comptime message_level: std.log.Level,
comptime scope: @Type(.EnumLiteral),
comptime format: []const u8,
args: anytype,
) void {
tier0.con.print("test", .{});
const level_txt = comptime message_level.asText();
const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
tier0.con.print(level_txt ++ prefix2 ++ format ++ "\n", args) catch return;
}
(in root.zig)
const lib = b.addSharedLibrary(.{
.name = "iridium",
.root_source_file = .{ .path = "src/root.zig" },
.target = target,
.optimize = optimize,
});
lib.step.dependOn(&tier0.step);
lib.addObjectFile(.{ .path = "tier0.lib" });
lib.linkLibC();
b.installArtifact(lib);
build.zig