A log tool in console with 4 levels.
- colors log using chalk
- 4 log levels
- debug mode support
npm install --save @zppack/logimport log from '@zppack/log';
log.i('this is a info-level log');
log.info('this is also a info-level log');Info-level log function. Shorted as log.i.
Warn-level log function. Shorted as log.w.
Error-level log function. Shorted as log.e.
Debug log function. Shorted as log.d.
Attention: Only works when there is an env variable process.env.DEBUG or process.env.ZP_DEBUG set to true.
See the change log.
