@tgarif/debug-levels
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@tgarif/debug-levels

npm

Installation

npm i @tgarif/debug-levels

Usage

const logger = require("@tgarif/debug-levels")("http");

logger("information about regular operation");
// INFO http information about regular operation

logger.fatal(
  "unrecoverable error, an operator should look at this as soon as possible"
);
// FATAL http unrecoverable error, an operator should look at this as soon as possible

logger.error("recoverable error");
// ERROR http recoverable error

logger.warn("warning");
// WARNING http warning

logger.info("information about regular operation");
// INFO http information about regular operation

logger.debug(
  "debug information, perhaps useful during development or troubleshooting"
);
// DEBUG http debug information, perhaps useful during development or troubleshooting

logger.trace("highly detailed information");
// TRACE http highly detailed information

License

MIT License © 2023-PRESENT Tengku Arif

Package Sidebar

Install

npm i @tgarif/debug-levels

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

11.8 kB

Total Files

5

Last publish

Collaborators

  • gorgc