Skip to content

emekoi/log.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log.zig

a cross-platform, thread-safe logging library for zig.

usage

const io = @import("std").io;
const log = @import("log");
const Logger = log.Logger;

pub fn main() !void {
    var logger = Logger.new(try io.getStdOut(), true);
    logger.setBright(false);
    logger.logWarn("crime is afoot");
    logger.setColor(false);
    logger.logInfo("crime has been stopped");
}

supports

  • window's console
  • any terminal supporting ansi escape codes

About

a thread-safe logging library for zig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages