Skip to content

acrool/acrool-js-logger

Repository files navigation

Acrool JS Logger

Acrool JS Logger Logo

style color console.log

NPM npm npm

npm downloads npm

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:

Play react-editext-example

License

MIT © Acrool & Imagine