Giter Club home page Giter Club logo

acrool-js-logger's Introduction

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

acrool-js-logger's People

Contributors

imagine10255 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

acrool-js-logger's Issues

virtual:pwa-info file use logger build fail

virtual:pwa-info file use logger build fail

I don't know why this problem occurs yet, so I'll record it here.

import {pwaInfo} from 'virtual:pwa-info';
import {useRegisterSW} from 'virtual:pwa-register/react';

import logger from '@acrool/js-logger';


console.log('pwaInfo', pwaInfo);  // OK
logger.info('pwaInfo', pwaInfo);  // yarn dev ok, but yarn build error

CleanShot 2024-07-28 at 22 57 53@2x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.