Simple module to push logs to loki.
const Loki = require("lokipush"); // CommonJS
const loki = new Loki("https://ip:port/loki/api/v1/push");
loki.addLog("I will be pushed to loki!");
This will push a log to loki. Logs are queued for 1 second (can be changed) and sent in batches.