conflogger
Small module for configuring a logger. Falls back to noops for methods that do not exist in the logger passed.
Installation
npm install conflogger --save
Usage
Conflogger can take a provided logger and fill methods that do not exist
const conflogger = ; let originalLogger = { console; }; let logger = conflogger; // Prints `Conflogger!`logger; // Prints `Error!`logger;
Conflogger can give you a basic logger. Free. Of. Charge.
const conflogger = ; let logger = conflogger; // Prints `Conflogger!`logger; // Prints `Error!`logger;
Conflogger can even give you a noop logger. Woah.
const conflogger = ; let logger = conflogger; // Does not print anythinglogger; // Does not print anythinglogger;