Simple logging utility for reuse in my personal projects. View on NPM.
npm install -S @fdebijl/clog
TS:
import { Clog, LOGLEVEL } from '@fdebijl/clog';
const clog = new Clog(LOGLEVEL.WARN);
clog.log('This is an error', LOGLEVEL.ERROR);
JS:
const { Clog, LOGLEVEL } = require('@fdebijl/clog');
const clog = new Clog(LOGLEVEL.WARN);
clog.log('This is an error', LOGLEVEL.ERROR);