debug-factory
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i debug-factory

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

14.9 kB

Total Files

9

Last publish

Collaborators

  • stej