Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriknielaender committed Mar 24, 2024
1 parent ab0f7c3 commit 44be147
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ logger.asyncLog("This is an error log message");
### Structured Logging
```zig
// Log with structured data
logger.debug("Debug message", .{ .{"key", "value"} });
logger.info("Test message", &[_]kv.KeyValue{
kv.KeyValue{ .key = "key1", .value = kv.Value{ .String = "value1" } },
kv.KeyValue{ .key = "key2", .value = kv.Value{ .Int = 42 } },
kv.KeyValue{ .key = "key3", .value = kv.Value{ .Float = 3.14 } },
});
```

## Contributing
Expand Down

0 comments on commit 44be147

Please sign in to comment.