a cross-platform, thread-safe logging library for zig.
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");
}
- window's console
- any terminal supporting ansi escape codes