1.0.4 • Published 7 years ago

shurl-debug v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Shurl Debugging Utility Tool

Codeship Status for camscottFS/URL-Debug

The .env file is located your root directory.

You'll need to add the following to the .env file:

DEBUG = true
DEBUG_CONSOLE = true
DEBUG_MSG_LOG = true

You can automatically install the Debugging tool as an NPM Package like this:

npm install shurl-debug --save

The files will then be saved in node_modules

To turn off the debugging tool can simply edit the .env file and change DEBUG = true to DEBUG = false

To prevent debug messages from appearing in the console you must change DEBUG_CONSOLE = true to DEBUG_CONSOLE = false.

To disable logging of the .msg() method you must change DEBUG_MSG_LOG = true to DEBUG_MSG_LOG = false.

Below is an example of what you can expect the log to generate when the debugging tool is enabled:

Event at 15:05:19 @ server.js on line 30
SUCCESS
Server active on port 3000

Event at 15:05:22 @ app.js on line 15 GET:/status
SUCCESS
Server status is healthy!

Event at 15:05:27 @ app.js on line 41 GET:/urls
SUCCESS
Read all URLs

Event at 15:06:52 @ app.js on line 65 GET:/urls/:id
SUCCESS
Read URL by ID

This debugger will save log files to a folder called logs in your the root directory of the application.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago