Tired of console.log pain in your applications? Look no further. logger.me is a simple to use and lightweight vanilla js wrapper around the old console.log.
logger.me helps you centralize and gain full control of your logs around the application.
None. Just plain old Javascript ;)
npm install logger.me
Logger.log('Test with log');
Logger.warn('Test with warn');
Logger.info('Test with info');
Logger.error('Test with error');
Logger.log('One param', 'String');
Logger.log('Many params', 'String', 1, true, {test: 'logger'}, function () {});
Logger.inactive();
Logger.active();
Using namespaces you can group your logs together, making it very easy to manage them:
Logger.ns('MY_MODULE').log('myFunction1');
Logger.ns('MY_MODULE2').log('myFunction2');
Logger.ns('MY_MODULE3').log('myFunction3');
Logger.ns('MY_MODULE').inactive();
Logger.ns('MY_MODULE').active();
- Internet Explorer 9+
- Firefox
- Chrome
This project is licensed under the MIT License - see the LICENSE.md file for details