a console.log()
wrapper for ES6 modules
yarn add github:christianseel/classlogger
npm install github:christianseel/classlogger
import ClassLogger from 'ClassLogger';
class ExampleClass {
constructor(){
let self = this;
self.logger = ClassLogger(self, true); // set second parameter to false to disable logging
self.init();
}
init() {
let self = this;
self.logger.log('This is a log line');
self.logger.warn('This is a warning');
self.logger.error('This is a error');
}
}