Allows the developer to shows logs in a fixed area of output. It could be useful:
- to show state
- to show errors
- to show important messages
Usage
npm install custom.stdout --save
; // Create instance. As argument we should provide target stream.// As usual it's process.stdout; // To post logs into "normal" (common area):stdout.out'LOGS INTO COMMON AREA'; // To post logs into "fixed" area just define ID of itstdout.out'Important message', 'messages'; stdout.out'Operations done: 43\nRAM used: 324Mb', 'operations';