aygo
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Aygo

Github action CodeFactor Known Vulnerabilities Maintainability Reviewed by Hound npm npm type definitions Libraries.io dependency status for latest release NPM npm

Aygo is a simple utility logger for typescript and javascript.

How to use Aygo

To use aygo just install it via :

npm install aygo

Then you can import it like the following :

import { Aygo, LEVELS } from 'aygo';
const logger = new Aygo('[EXAMPLE]', LEVELS.DEBUG);

logger.debug('DEBUG : This', 'is', { key: 'a test' }, 134);
logger.log('LOG : This', 'is', { key: 'a test' }, 134);
logger.info('INFO : This', 'is', { key: 'a test' }, 134);
logger.warn('WARN : This', 'is', { key: 'a test' }, 134);
logger.error('ERROR : This', 'is', { key: 'a test' }, 134);
logger.table(['LOG : This', 'is', { key: 'a test' }, 134]);

Methods

For now Aygo supports the basic logging methods (check the examples for more) :

  • debug
  • log
  • info
  • warn
  • error

Examples

Typescript

Package Sidebar

Install

npm i aygo

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

356 kB

Total Files

30

Last publish

Collaborators

  • fzwael