1
0
Fork
You've already forked ulog
0
No description
  • Zig 92.2%
  • C 7.6%
  • Makefile 0.2%
2026年01月15日 12:04:56 -05:00
csrc wip branch:main 2026年01月10日 14:54:18 -05:00
src wip branch:main 2026年01月15日 12:04:56 -05:00
.gitignore wip branch:main 2026年01月10日 14:54:18 -05:00
build.zig wip branch:main 2026年01月10日 16:32:34 -05:00
build.zig.zon wip branch:main 2026年01月10日 14:59:07 -05:00
Makefile wip branch:main 2026年01月10日 14:54:18 -05:00
README wip branch:main 2026年01月15日 10:34:22 -05:00

This shows how to use the following c
logging code from zig:
https://github.com/rxi/log.c.git
It uses the standard zig logging facilities
std.log, and adds a file handle so it
can also log to a file using the C code.
That might be a lie, I think we will use
a custom scope to log to file.
which would use zig's 'scoped()' log thing.
Basically the integration with zig is
to hijack the log fn and then switch
on the scope. If the scope is our
new custom file one then ONLY log to the
file. Otherwise just pass along to the
default log fn.