Closed
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.