@acrool/js-logger
v1.0.23
Published
style color console.log
Downloads
243
Maintainers
Readme
Acrool JS Logger
Features
- style color version console.log
Installation
yarn add @acrool/js-logger
Examples
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:
License
MIT © acrool