style color console.log
- style color version console.log
yarn add @acrool/js-logger
import logger from '@acrool/js-logger';
const objectVar = {id: 1, name: 'imaginechiu'};
const arrayVar = [1, 2, 3, 4];
const arrayObjVar = [{id: 1, name: 'imaginechiu'}, {id: 2, name: 'selinwu'}, {id: 3, name: 'garychien'}];
logger.primary('primary', objectVar, arrayVar);
logger.success('success', objectVar, arrayVar);
logger.warning('warning', objectVar, arrayVar);
logger.danger('danger', objectVar, arrayVar);
logger.info('info', objectVar, arrayVar);
There is also a example that you can play with it: