1. Basics

Basics

In this example, only the basic features are demonstrated.

File : basic.js

const net = require('net');
const debug = require('pretty-debug');

debug.log('The is level 1 : LOG');
debug.info('The is level 2 : INFO');
debug.alert('The is level 3 : ALERT');
debug.warn('The is level 4 : WARN');
debug.error('The is level 5 : ERROR');
debug.critical('The is level 6 : CRITICAL');

Run Example

To run the above example simply run the command below

$ node basic.js

Output

Output

-----------------------------------------------------