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!
Top comments (0)