0.2.2 • Published 6 years ago

@namics/remlog-debug v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

@namics/remlog-debug

This package is used for debugging inside the remlog module.

Usage

Supported methods
  • error (red)
  • warn (yellow)
  • info (cyan)
  • success (green)
  • log (white)
const { Logger } = require("@namics/remlog-debug");

// Accepts a single argument which defines the module
// or context of the logger. If you're using e.g. the
// FileSystem transports, the logger context will be
// "Transport(FileSystem)"
const logger = new Logger("MyModule");

// Will output a yellow message
// $~ [MyModule] hey you!
logger.warn("hey you!");

Review the Changelog