diff --git a/src/logging/log.zig b/src/logging/log.zig index 3a28ae7..48f317b 100644 --- a/src/logging/log.zig +++ b/src/logging/log.zig @@ -288,7 +288,7 @@ test "filtering, buffering and automatic flushing" try std.testing.expect(contents.len == 0); } - // The file should include 'info=1' after flushing to disk. + // The file should include '[INFO] info=1\n' after flushing to disk. try log.flush(); { @@ -299,7 +299,7 @@ test "filtering, buffering and automatic flushing" try log.state.writer.seekTo(0); @memset(read_buf[0..], 0); - // The file should include 'warn=1' as warnings and errors automatically trigger a flush to disk. + // The file should include '[WARN] warn=1\n' as warnings and errors automatically trigger a flush to disk. log.warn("warn={d}", .{1}); { @@ -310,7 +310,7 @@ test "filtering, buffering and automatic flushing" try log.state.writer.seekTo(0); @memset(read_buf[0..], 0); - // The file should include 'info=x...' as it's bigger than the allocated 256 buffer, forcing it to automatically drain on overflow. + // The file should include '[INFO] info=x...' as it's bigger than the allocated 256 buffer, forcing it to automatically drain on overflow. log.info("info={s}", .{[_]u8{'x'} ** 300}); {