aiyo-logger

1.0.2 • Public • Published

aiyo-logger Build Status

Log Shaa !!! and Aiyo !!! in Node applications

Install

npm install --save-dev aiyo-logger

Usage

var logger = require('aiyo-logger');
 
someAsyncFunc()
    .then(res => {
        //when you are happy log Shaa !!!
        logger.shaa();
    })
    .catch(err => {
      //when something goes wrong log Aiyo !!!
        logger.aiyo();
    });

API

logger.shaa(['text'])

Logs Shaa !!!

text

Type: string

Optional text to be logged

logger.aiyo(['text'])

Logs Aiyo !!!

text

Type: string

Optional text to be logged

License

MIT © Rajika Imal

Readme

Keywords

Package Sidebar

Install

npm i aiyo-logger

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rajikaimal