1.0.3 • Published 5 months ago

debug-factory v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

debug-factory

Factory for creating debug loggers

import DebugFactory from "debug-factory";

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);
1.0.3

5 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago