-
Notifications
You must be signed in to change notification settings - Fork 948
Closed
Labels
bugThis issue identifies a malfunctionThis issue identifies a malfunctionchange-patchThis proposes or provides a change that requires a patch releaseThis proposes or provides a change that requires a patch releasehelp-wantedThis issue has an actionable itemThis issue has an actionable itempr-welcomeThis issue has an approved change; a pull request would be appreciatedThis issue has an approved change; a pull request would be appreciated
Milestone
Description
const debug = require('debug');
const log = debug('app');
log.log = console.log.bind(console); //log to stdout
log('Stdout test'); //writes "app Stdout test" to stdout
log.extend('extended')('Stdout test'); //writes "app:extended Stdout test" to stderr
Bit annoying if i want to have a base IDebugger for stdout and another for stderr, but i have to re-bind console.log whenever i want to extend the stdout debugger.
Metadata
Metadata
Assignees
Labels
bugThis issue identifies a malfunctionThis issue identifies a malfunctionchange-patchThis proposes or provides a change that requires a patch releaseThis proposes or provides a change that requires a patch releasehelp-wantedThis issue has an actionable itemThis issue has an actionable itempr-welcomeThis issue has an approved change; a pull request would be appreciatedThis issue has an approved change; a pull request would be appreciated