From a70984c80eb67c448480377849ba2adb6e51cf73 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Sat, 6 Jan 2024 09:50:11 +0800 Subject: [PATCH] accomodate zig's latest breaking changes --- build.zig | 2 +- readme.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.zig b/build.zig index 941db12..02bdd7d 100644 --- a/build.zig +++ b/build.zig @@ -5,7 +5,7 @@ pub fn build(b: *std.Build) !void { const optimize = b.standardOptimizeOption(.{}); _ = b.addModule("logz", .{ - .source_file = .{ .path = "src/logz.zig" }, + .root_source_file = .{ .path = "src/logz.zig" }, }); const lib_test = b.addTest(.{ diff --git a/readme.md b/readme.md index ba88526..aef8067 100644 --- a/readme.md +++ b/readme.md @@ -69,10 +69,10 @@ The logger can log: * `binary(key: []const u8, value: ?[]const u8)` - will be url_base_64 encoded * `err(e: anyerror)` - same as `errK("@err", e)`; * `errK(key: []const u8, e: anyerror)` -* stringSafe(key: []const u8, value: ?[]const u8 - assumes value doesn't need to be encoded -* stringSafeZ(key: []const u8, value: ?[*:0]const u8 - assumes value doesn't need to be encoded -* ctx(value: []const u8) - same as `stringSafe("@ctx", value)` -* src(value: std.builtin.SourceLocation) - Logs an `std.builtin.SourceLocation`, the type of value you get from the `@src()` builtin. +* `stringSafe(key: []const u8, value: ?[]const u8)` - assumes value doesn't need to be encoded +* `stringSafeZ(key: []const u8, value: ?[*:0]const u8)` - assumes value doesn't need to be encoded +* `ctx(value: []const u8)` - same as `stringSafe("@ctx", value)` +* `src(value: std.builtin.SourceLocation)` - Logs an `std.builtin.SourceLocation`, the type of value you get from the `@src()` builtin. ### Log Level Pools are configured with a minimum log level: