Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@bahatron/logger

3.0.3 • Public • Published

Logger

import { createLogger } from "@bahatron/logger";
 
let myLogger = createLogger({
    debug: false,
    id: "my logger id",
});
 
myLogger.on("warning", (context) => {
    // do your thing
});
 
myLogger.warning("warning", { foo: "bar" });

Keywords

none

Install

npm i @bahatron/[email protected]

Version

3.0.3

License

Apache-2.0

Unpacked Size

129 kB

Total Files

16

Last publish

Collaborators

  • avatar