Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.
/ debug-log Public archive

Node.js 0.12 util.debuglog() ponyfill

License

Notifications You must be signed in to change notification settings

sindresorhus/debug-log

Repository files navigation

Deprecated

This package is no longer relevant as Node.js 0.12 is unmaintained.


debug-log Build Status

Node.js 0.12 util.debuglog() ponyfill

Install

$ npm install --save debug-log

Usage

// example.js
var debugLog = require('debug-log')('foo');

debugLog('unicorns & rainbows');
$ node example.js

$ NODE_DEBUG=foo node example.js
FOO 3245: unicorns & rainbows

API

See the util.debuglog() docs.

License

MIT © Sindre Sorhus