npm.io
0.2.2 • Published 7 years ago

@namics/remlog-debug

Licence
MIT
Version
0.2.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
2
DeprecatedThis package is deprecated

@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

Keywords