Simple logger support both for node server and browser, base on debug.
npm install cuteLogger
You can write code like this both on server and browse;
import _logger from 'cuteLogger';
const logger = new _logger('appName', 'moduleName');
logger.debug('hello cuteLogger');
logger.info('hello cuteLogger');
logger.warn('hello cuteLogger');
logger.error('hello cuteLogger');
The output maybe like this:
appName:debug:moduleName hello cuteLogger +0ms
appName:info:moduleName hello cuteLogger +0ms
appName:warn:moduleName hello cuteLogger +0ms
appName:error:moduleName hello cuteLogger +0ms