Lorg - for all your logging needs
Fast, streamable Object logging made simple. Lorg is on average 4 times faster than console.log
as it buffers and queues logs efficiently in a stream. It also adds additional meta information for better log tracking.
Getting Started
Install lorg:
npm install --save lorg
Create a new instance and pipe it to stdout:
const Lorg = ;const appLog = ; appLog; // Outputs to terminal
Log:
let values = 12345;...appLog; // Output: {"hello":"World!","_META_":{"time":1489471607584,"type":"log"}}
Lorg will automatically add a _META_
property with time and type of the log added to it.
Stream your logs to a file and terminal:
const fileStream = fs;appLog;appLog;
Create multiple log streams:
const appLog = ;const buildLog = ;const fileStream = fs;appLog; // Outputs to terminalbuildLog; // Outputs to file