Implemented using node.js
-
Install dependencies witn
npm install
-
Customize your config.json
-
Make sure directory for logDirctory exists, e.g.
$prompt> mkdir logs/
- Configure your
$NODE_ENV
for the right logging level:
$ export NODE_ENV=debugging
- default is development, see below for options
-
Execute the code, e.g. prompt> node server.js
-
Kill gracefully w/
CTRL+c
orkill
See winston documentation for description of log levels
- production :== Only log errors, no console
- testing :== Log up to info, no console
- development :== Log up to verbose, with console
- debugging :== Log silly, with console
- The diagnostic port is configured in config.json
- I like running it with
$telnet <ipAddr> <port>
$ node --version
v10.13.0
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14
BuildVersion: 18A391
$ruby --version
2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]