@ngox/logx
v1.0.1
Published
Log package for JS & TS
Readme
Logx
A Node.js module for logging purposes. Easily log to the console, having always the same formatting:
[TYPE_OF_LOG]: [DATE] [MESSAGE]Examples:

Installation
To install this package, simply type the following command in your terminal:
npm i @ngox/logxOf course, npm must be installed on your computer.
Usage
Javascript
var Logger = require('xxx').Logger;
var LEVEL = require('xxx').LEVEL;
Logger.log('Foo');
Logger.logx(LEVEL.ERROR, 'Bar');TypeScript
import { LEVEL, Logger } from 'xxx';
Logger.log('Foo');
Logger.logx(LEVEL.ERROR, 'Bar');Output expected

Test
npm run test