Skip to content

Commit

Permalink
accomodate zig's latest breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Jan 6, 2024
1 parent e3cfd26 commit a70984c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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(.{
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a70984c

Please sign in to comment.