No description
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| Jenkinsfile | ||
| LICENSE | ||
| README.md | ||
Simple zig logging library to file
This is a minimalist scoped logger. It is opiniated in design:
- We only support file output.
- We only provide
infoanderr. Info is for general information and what would be considered "warnings". It is also for recoverable errors. Err is for errors where unexpected loss of functionality occurs. - The output file is in tsv-like format. The exception is that some messages are multiline (like stacktraces for errors).
Usage
- Add to your build.zig.zon.
- Add the module to your module.
- Link against the library.
- Use the following code example as a template:
var logger = try Log.init(.{});
defer logger.deinit();
const root_scope = logger.scope("root");
root_scope.info("abc", .{});
root_scope.err("some mean error", .{});