j
jaipkg.dev
packages / library / jai-logger

jai-logger

605b095library

a test project to recreate a nim logging module in jai

No license · updated 1 year ago

overview

This is just a test project where I tried to implement my tiny Nim logging module as a Jai metaprogram

screenshot

Original nim gist: https://gist.github.com/LainLayer/4aa7ce1e47c3486dc6325c20a12958ff

usage

In Jai:

info("starting logging example!");
debug("x: ", x, ", another number: ", 12, ", Z: ", Z);
warn("runtime_string: ", runtime_string, ". What an epic runtime string it is...");
error("Program took ", 0.00001, " milliseconds to load!");
ok("Looks good to me!");

In Nim:

info "starting logging example!"
debug "x: ", x, ", another number: ", 12, ", Z: ", Z
warn "runtime_string: ", runtime_string, ". What an epic runtime string it is..."
error "Program took ", 0.00001, " milliseconds to load!"
ok "Looks good to me!"

Notes

Jai version: Version: beta 0.2.010, built on 4 March 2025.