1.0.0 • Published 10 years ago
@byondreal/logger v1.0.0
logger.js
Namespaced and colorful JavaScript console logs!
Install
npm install @byondreal/loggerUsage
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
Example
1.0.0
10 years ago