@byondreal/logger
v1.0.0
Published
World's smallest JavaScript logging provider
Downloads
2
Readme
logger.js
Namespaced and colorful JavaScript console logs!
Install
npm install @byondreal/logger
Usage
var Logger = require('@byondreal/logger');
var obj = {};
Logger.call(obj, 'namespace');
obj.log('Namespaced log #1!');
Shows colored and namespaced log as below:
Features
- Disable/re-enable with
Logger.disable()
andLogger.enable()
- Initializing with different namespaces cycles through different colors