2.1.0 • Published 1 year ago

ic-logs v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ic-logs

Logs library to iClubs developers.

Functions:

  • verboseLog: logs only when LOGTYPE is equal to _verbose.

  • log: logs only when LOGTYPE is equal to _standard or verbose.

  • errorLog: logs only when LOGTYPE is equal to _standard, verbose, or error.

When LOG_TYPE is equal to:

  • verbose: the errorLog, verboseLog, and log functions will be considered.
  • standard: the errorLog and log functions will be considered.
  • error: only the errorLog function will be considered.
  • no: no function is considered.

Note: LOG_TYPE is a mandatory environment variable.

Install

npm

npm i ic-logs

yarn

yarn add ic-logs

Usage

const logger = require('ic-logs');

logger.log(any);
logger.verboseLog(any);
logger.errorLog(any);

OR

const { log, verboseLog, errorLog } = require('ic-logs');

log(any);
verboseLog(any);
errorLog(any);

ES Module or Typescript Import

import { log, verboseLog, errorLog } from 'ic-logs';

Contact

For support use iClubs contact channels.

2.0.2

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago