Aygo
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