"npm kruza: A logger with Source Tracing"
DaniilPak
Posted on November 20, 2024
Automatically tracing and displaying the source (function/class) of the log.
Providing colorful and readable logs for better visibility.
Offering a clean and simple API for logging multiple arguments.
import _ from "kruza";
class Boxer {
punch() {
_.log("Punch");
}
}
class Police {
eatDonut() {
_.log("Eating donut");
}
}
class UFC_Champ {
koSomeone() {
_.log("BAM!");
}
}
const b = new Boxer();
b.punch(); // Output: [Boxer.punch] Punch
const p = new Police();
p.eatDonut(); // Output: [Police.eatDonut] Eating donut
const ufc = new UFC_Champ();
ufc.koSomeone(); // Output: [UFC_Champ.koSomeone] BAM!
๐ ๐ช ๐
๐ฉ
DaniilPak
Posted on November 20, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
javascript How I Created Vanilla Calendar Pro โ A Lightweight and Flexible JavaScript Calendar with TypeScript
November 28, 2024
javascript ๐ Introducing fetchff: A lightweight alternative for Your Fetching Needs in Javascript!
October 4, 2024