@crabas0npm2/nisi-perferendis-aperiam
v1.0.0
Published
Factory for creating debug loggers
Downloads
8
Maintainers
Keywords
Readme
@crabas0npm2/nisi-perferendis-aperiam
Factory for creating debug loggers
import DebugFactory from "@crabas0npm2/nisi-perferendis-aperiam";
const [log, error] = DebugFactory.getDebuggers("MyApp");
log("This is a log");
error("this is a error");
With a custom formatter
const [log, error] = DebugFactory.getDebuggers("Memory", {
x: (v) => v.toString(16)
});
log("putByte: add:0x%x val:0x%x", address, byte);