No description
Find a file
2025-12-07 18:17:56 -05:00
src add different backends for different platforms 2025-12-07 18:17:56 -05:00
.gitignore init 2025-08-23 22:44:08 -04:00
build.zig init 2025-08-23 22:44:08 -04:00
build.zig.zon add different backends for different platforms 2025-12-07 18:17:56 -05:00
Jenkinsfile add jenkinsfile 2025-08-23 23:09:17 -04:00
LICENSE add docs 2025-08-23 23:01:03 -04:00
README.md add docs 2025-08-23 23:01:03 -04:00

Simple zig logging library to file

This is a minimalist scoped logger. It is opiniated in design:

  1. We only support file output.
  2. We only provide info and err. 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.
  3. The output file is in tsv-like format. The exception is that some messages are multiline (like stacktraces for errors).

Usage

  1. Add to your build.zig.zon.
  2. Add the module to your module.
  3. Link against the library.
  4. 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", .{});