diff options
| author | heidezomp <heidezomp@protonmail.com> | 2020-08-12 14:03:02 +0200 |
|---|---|---|
| committer | heidezomp <heidezomp@protonmail.com> | 2020-08-12 14:03:02 +0200 |
| commit | 7db2c11537552250462a5f4ab162e5ef4183489c (patch) | |
| tree | 3ff706490e57f2b164d495e2d93c43213154dc32 /lib/std/comptime_string_map.zig | |
| parent | 67d684d89aeb0bb3cfa86c57e8d77359d45743fa (diff) | |
| download | zig-7db2c11537552250462a5f4ab162e5ef4183489c.tar.gz zig-7db2c11537552250462a5f4ab162e5ef4183489c.zip | |
std.log: add scoped logging struct
* Add a std.log.scoped function that returns a scoped logging struct
* Add a std.log.default struct that logs using the .default scope
Implementation of daurnimator's proposal:
https://github.com/ziglang/zig/issues/5943#issuecomment-669043489
Note that I named the function "scoped" instead of "scope" so as not to
clash with the scope parameter that is used everywhere; this seemed a
better solution to me than renaming the scope parameter to "s" or
"log_scope" or the like.
Diffstat (limited to 'lib/std/comptime_string_map.zig')
0 files changed, 0 insertions, 0 deletions
